I'm trying to use datomic materials to learn how to use datahike. what does :db/id #db/id [:db.part/db]
mean in
{:db/ident :movie/title
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/id #db/id [:db.part/db]
:db.install/_attribute :db.part/db}
https://github.com/jonase/learndatalogtoday/blob/d2508adefa76b0f5a12c2b6c374ffc5109b03ce4/resources/db/schema.edn#L5
it's breaking when I try to open the file to import the schema. I'm able to get around it by just deleting those lines entirely, and converting the related data files to just using integer literals instead of these #db/id literalshey @conrad.p.dean. Datomic has the notion of partitions, while in Datahike we have not partitioned the indices in the same way yet. So you can just ignore the #db/id [:db.part/db] bit and use integer ids, e.g. tempids. @konrad.kuehne is more knowledgeable about the current state of the internals.
ah cool
thanks @whilo !
I'm trying to recreate this kind of a query in datahike, but I don't know what the schema is for the underlying database in the datomic tutorial, and i'm not sure how to search for the feature that this relies on. does this require some additional schema setup to elide the additional relation for the join, or is this not something datahike supports yet? https://github.com/cognitect-labs/day-of-datomic-cloud/blob/master/tutorial/query.clj#L161-L171
it seems to let you inline a [:country/name "..."]
datom instead of joining against the :country/BE
keyword, which i assume is being treated like the entity id