3 ms·
What about adding an option to using a user defined key instead of the uuid. I think it will be useful
by a_c 11y ago
What about adding an option to using a user defined key instead of the uuid. I think it will be useful
- s_kilk 11y agoJust guessing, but it looks like jsonlite relies on the uniqueness property of UUIDs to 'guarantee' uniqueness in what amounts to it's primary-key index, the index of ids. User-defined keys would need to be checked against all existing keys before inserting, to ensure uniqueness. Not impossible, but potentially much slower.
- nodesocket 11y agoCorrect, this all works, because we assume the UUID is globally unique, thus a read is a O(1) operation.