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
How does this work together with pull
?
I think that it throws in datomic
Check here: https://github.com/tonsky/datascript/blob/master/test/datascript/test/query_pull.cljc#L60
Pull does support specifying a source
But only one
So you'd have to [:find (pull $1 ...) (pull $2 ...) ...] at which point the ergonomics probably don't make sense any longer 😉
So I'll have to merge the objects later? And carry multiple :db/ids in case I need more data?