clubjudge / hari Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
also, for relation, optionally don't index one direction of the relationship (maybe another way or declaring when it's fully connected or not)
When creating a relation, today we do:
ZADD n1type#n1id:relation:out n1type#n1id:relation:n2type#n2id
ZADD n2type#n2id:relation:in n1type#n1id:relation:n2type#n2id
We should also include:
ZADD n1type#n1id:relation:out:n2type n2id
ZADD n2type#n2id:relation:in:n1type n1id
So it would be possible queries filtered by a type.
For nodes is alright, but not for a Hari::Serialization
object in a list, for example.
Current delete just removes the node, not its relations.
#count
, to return all nodes in relation (9b0a558)#nodes_ids
+ #nodes_ids!
(alias n_ids
) (bdc0212)#nodes
+ #nodes!
+ #to_a
(9d646cc)#relations_ids
+ #relations_ids!
(alias rids
, rel_ids
) (81dcc7b)#limit
(09d7d6d)- [ ] #step
- [ ] #from
- [ ] be able to chain with a relation query and vice versa (out
| in
) (a level, and so on)
when per_page is 1 and direction is down, doesnt bring the element brought when per_page is 2
In order to fulfil Redis contracts for every key, there are still these commands missing:
like User.index.clear
User.reindex
could remake all indexes.
strings, hashes, lists, sets, sorted sets, and… relations!
It just needs to respond to #id
for that and it's fine.
a .node
seems a good idea to declare properties and external keys, or hari do … end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.