hey folks, I'm a bit confused about datascript indexes. is it actually store all the datums in the index nodes ?
Yes @lxsameer. Not only that, it stores them all at least 3 times because there are 3+ indexes.
like eavt and aevt and ...
?
Yes
It might be at least 2 times, need to refresh my memory
http://tonsky.me/blog/datascript-internals/ might be interesting to you
absolutely
thanks
also are you familiar with datahike ?
First time i'm hearing of it, but I'm familiar with 'hitchiker trees'
cool, so it does not make sense to me to store the data in the B+ or hitchhiker tree index nodes 3 times
for datascript it makes sense since it is memory base
but does it make sense for a storage base tree ?
No, I bet its the same in datahike. Datomic also stores the atoms in the index nodes, multiple times.
It's a trade off between storage (cheap) and performance
so all of them store the datums on the index nodes as well
Yep
thank you so much man , you clarified lots of my confusions