Fork me on GitHub
#datascript
<
2018-11-29
>
lxsameer19:11:04

hey folks, I'm a bit confused about datascript indexes. is it actually store all the datums in the index nodes ?

danielstockton20:11:08

Yes @lxsameer. Not only that, it stores them all at least 3 times because there are 3+ indexes.

lxsameer20:11:15

like eavt and aevt and ...

danielstockton20:11:17

It might be at least 2 times, need to refresh my memory

lxsameer20:11:19

also are you familiar with datahike ?

danielstockton20:11:35

First time i'm hearing of it, but I'm familiar with 'hitchiker trees'

lxsameer20:11:50

cool, so it does not make sense to me to store the data in the B+ or hitchhiker tree index nodes 3 times

lxsameer20:11:04

for datascript it makes sense since it is memory base

lxsameer20:11:19

but does it make sense for a storage base tree ?

danielstockton20:11:29

No, I bet its the same in datahike. Datomic also stores the atoms in the index nodes, multiple times.

danielstockton20:11:45

It's a trade off between storage (cheap) and performance

lxsameer20:11:17

so all of them store the datums on the index nodes as well

lxsameer20:11:55

thank you so much man , you clarified lots of my confusions

👍 4