Open p-himik opened 6 years ago
Another advantage of this approach is that it allows for fast querying of all entities of the same type (well, having the same ID attrs). That being said, I think it would also make sense to make it possible to rename the top-level key. It would also make it more simple to incorporate SubGraph into the existing app-db
s.
Right now SubGraph stores entities directly in
app-db
under keys that look like[:some-keyword some-key-value]
. It makes it incredibly hard to look atapp-db
with the naked eye or with tools like https://github.com/flexsurfer/re-frisk. I think it would make sense to use a tree structure and store the entities like{:some-keyword {some-key-value some-value}}
. So instead of e.g. thisit would be this