3 ms·
How does the document-db nature come up in practice? For example are transactions single-document in Crux? I'm trying to understand the difference in semantics
by fulafel 7y ago
How does the document-db nature come up in practice? For example are transactions single-document in Crux? I'm trying to understand the difference in semantics and data model vs Datomic.
- refset 7y agoDocuments are best thought about in terms of being the unit of ingestion and history - they do not have strong implications for queries asides from having a 1:1 mapping with entities. Each transaction may contain multiple operations and each operation is typically only relating to one document. A document represents a single version of an entity and is decomposed during ingestion into an arbitrary set of attribute-value datoms that get updated atomically and fully replace all the previous attribute-value associations of the given entity. For more on the semantic differences with datoms see the FAQ: https://www.opencrux.com/docs#faq-comparisons https://www.opencrux.com/docs#faq-comparisons