Can I do multiple pulls in a query? It seems to only respect the first (pull ...) in the find clause
In datomic, yes, you can do (d/q '[:find (pull ?e) (pull ?a) :where [?e :user/address ?a]])
.
@souenzzo thanks. i was doing something still. I was calling (map first) on the result of the query and went to bed confused about why the order of the pulls in the :find clause mattered. sleep is good!
In these docs, there is an example which uses a schema that specifies a valueType of :db.type/string on an attribute: https://github.com/tonsky/datascript/wiki/API-overview
When I specify a valueType of string, it throws an exception: Bad attribute specification ...
I think that it's a issue. You can update the docs and make a pR
Thanks @souenzzo
@souenzzo you don't happen to have any idea which issue it is, do you?
I think that is something like outdated/inconsistent documentation
Some versions back, it was possible to declare these types.
Here's a lazy question:
Why is conn-from-datoms so much faster that transacting maps?
It takes like 40 seconds to do db/with or transact! what takes 2 seconds if I put it all into datom format ahead of time