Efficiently ensure that an open store's schema is a superset of a provided schema #74
Labels
No labels
A-build
A-cli
A-core
A-design
A-edn
A-ffi
A-query
A-sdk
A-sdk-android
A-sdk-ios
A-sync
A-transact
A-views
A-vocab
P-Android
P-desktop
P-iOS
bug
correctness
dependencies
dev-ergonomics
discussion
documentation
duplicate
enhancement
enquiry
good first bug
good first issue
help wanted
hygiene
in progress
invalid
question
ready
size
speed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/mentat#74
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A typical Datomish session looks like this:
Transacting the entire schema through the generic transact layer is expensive: it's an exclusive write transaction, and it does a bunch of database-level work that's redundant, because everything about the schema in the DB was just loaded into memory during opening!
Instead of
<transact!
, then, we'd like something more like<ensure-schema!
, which will immediately return if the provided schema form is already present in the known schema, and otherwise will transact as usual.