Fork me on GitHub
#xtdb
<
2023-02-18
>
sparkofreason01:02:41

Does it particularly matter what is used as entity ID? I seem to remember that Datomic didn't like random UUID's, because they made the index inefficient in some way. Does something like a ULID (https://github.com/theikkila/clj-ulid) help the XTDB indexer? Or does it just not matter?

tatut04:02:28

I don’t know the definitive answer, but I haven’t noticed any issue with random

tatut04:02:46

we often use maps like {:sometype …uuid…} as ids

👍 2
sparkofreason04:02:02

Ah, right. XTDB probably hashes it internally in some way optimized for indexing.

Thomas Moerman13:02:03

We use the {:table ...uuid...} form for IDs as well, because it plays very nicely with Pathom resolvers.