[tx] Allow setting the default partition for string temp IDs #114

Open
opened 2020-08-06 16:55:08 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:55:08 +00:00 (Migrated from github.com)

For #184, I'm going to try implementing edn::Value::Text string temp IDs. By default, these will allocate in the :db.part/user partition.

This follows Datomic, but way down at the bottom of http://docs.datomic.com/transactions.html it shows a way to configure this "default partition". This ticket tracks letting this be configured. My initial implementation suggestion is to make this a datom in the store with a cached materialized view; might as well be consistent. Something like:

[:db/default :db.default/partition :db.part/user]

which reads "the DB defaults entity has default partition set to the user partition".

For #184, I'm going to try implementing `edn::Value::Text` string temp IDs. By default, these will allocate in the `:db.part/user` partition. This follows Datomic, but way down at the bottom of http://docs.datomic.com/transactions.html it shows a way to configure this "default partition". This ticket tracks letting this be configured. My initial implementation suggestion is to make this a datom in the store with a cached materialized view; might as well be consistent. Something like: ```edn [:db/default :db.default/partition :db.part/user] ``` which reads "the DB defaults entity has default partition set to the user partition".
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#114
No description provided.