Tried Googling but:
Question: Best way to externally generate Sequential UID values for a MySQL field which must be representable as a string.
Reason:
Generic sequential UUID-ish values for on-disk-order/page-appending inserts for performance of writes and date prefixing for read speed when searching an index of the field from char[0] forward. The column will be indexed, but looking for the best data to increase index read and table write performance rather than a plain-old-UUID.
My initial thought is date to some granularity (possibly padded epoch) appended to or replacing some portion of a UUIDv4 generated string ie [Unix epoch][remaining UUID4]
in a fixed-width char field, but I am unsure if this would have the desired in-page/disk ordering result and index-searching result. An example would be:
12904645950049bceba1cc24e80806dd
The values must be independent of MySQL itself, hence using UUIDs and timestamps rather than some variation of auto-incrementing.
Anyone who knows the internals of MySQL indexes have any suggestions (for InnoDB Tables) ?
Aiden