Fork me on GitHub
#datomic
<
2021-02-17
>
joshkh15:02:43

collisions aside, are there any indexing and/or query performance benefits of using a uuid vs a string as some entity identifier? for example

{:player/id #uuid"cb7afbf9-95ca-4c5b-af42-b096342bae61"}
vs
{:player/id "a4st390xrvskm9ecm452jbn"}

tvaughan15:02:47

I asked a similar question, https://github.com/zelark/nano-id/issues/12#issuecomment-625522643 The answer appears to be that there's not much of a difference, https://clojurians-log.clojureverse.org/datomic/2020-05-08/1588924450.320800 (currently getting a gateway timeout error)

joshkh15:02:40

that's perfect, thanks @U0P7ZBZCK. go figure, i prefer UUIDs but i have to incorporate some string ids coming from a non-Datomic system. :man-shrugging:

👍 3