Fork me on GitHub
#datascript
<
2019-05-23
>
ncg09:05:06

Datomic can take more than one database as input, and I'm pretty sure DataScript can as well, although I haven't tested it. Your queries would then look like: [:find ... :in $db1 $db2 :where [$db1 ?e :a ?v] [$db2 ?e :a2 ?v2]] Not sure if this fits your use case

urzds14:05:50

How does this work together with pull?

souenzzo15:05:52

I think that it throws in datomic

ncg15:05:04

Pull does support specifying a source

ncg15:05:07

But only one

ncg15:05:33

So you'd have to [:find (pull $1 ...) (pull $2 ...) ...] at which point the ergonomics probably don't make sense any longer 😉

urzds15:05:50

So I'll have to merge the objects later? And carry multiple :db/ids in case I need more data?