Fork me on GitHub
#datascript
<
2019-10-07
>
hiredman21:10:06

seems like the same issue there always is mapping lists to a relational model, and people do that all the time. I think I would abandon the vector, insert each part of the vector as a fact, and add some kind of join relation that tracks which list and what position in the list each item is in

Quest00:10:27

I'm assuming you mean something like :modal/arg1, :modal/arg2, ... along with a :modal/numArgs? I can see how you'd reconstruct the arglist, though I'm not sure what :db/type you'd make the args in this case. (FYI I ended up just serializing the :arguments to a Transit string. Some perf loss but acceptable for my use case.)

hiredman00:10:59

Say n is some member of the vector, have facts like [n :vector/member-of somenameoridforvector] and [n :vector/index somenumber]

hiredman00:10:23

And then you can have whatever other facts you want to store the actual value whatever that is