Fork me on GitHub
#datalevin
<
2023-01-17
>
Klay23:01:40

Hello, should IDs for :db.unique/identity attributes be sequential? I’m asking since I’m currently using random IDs (via nano-id) but there’s the squuid function which mentions middle insertions in the index.

Huahai00:01:47

You don’t have to. This squuid is probably a legacy of datomic and included with compatibility with it in mind. In Datalevin, it does not have to be sequential. Our index is a single Btree, there’s no segments etc, so it doesn’t matter.

👍 2