qpdb / mentat

A persistent, relational store inspired by Datomic and DataScript.
https://mentat.rs/
Apache License 2.0
52 stars 2 forks source link

Include worked example with a manually ordered list #244

Open gburd opened 4 years ago

gburd commented 4 years ago

Datomic and Mentat are primarily set oriented, but there's some data that really wants to be ordered and the order is arbitrary. Datomic users tend to handle this with a "transaction function" that atomically updates order attributes during a transaction. (See, for example, https://augustl.com/blog/2013/ordering_cardinality_many_in_datomic/.) That approach is probably possible in Mentat, but it's not easy to arrange right now. This is mostly a TODO item for @rnewman to set down his thoughts on what we should do here.