-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
QueryId is currently generated as {timestamp:yyyyMMdd_HHmmss}_{index:05}_{coordinator_id:05}. Could it be changed to match RFC 9562 UUID versions 6-8?
Benefits are:
- UUIDv7 format implementations already uses timestamp + counter + random part for generation, so the value ordering and uniqueness should be just the same. More than that, UUIDv7 timestamp precision is milliseconds compairing to whole seconds of QueryId.
- UUID is 128 bit compairing to 216 bit of string in UTF-8 encoding.
- Better support by third-party systems. Imagine storing audit logs in some database, and user who wants to filter data by queryId field. UUID data type is quite common in modern DBMS, and index takes less space than same index for a string field.
Metadata
Metadata
Assignees
Labels
No labels