Details

    Description

      MariaDB provides the UUID method that generates UUID v4, however UUID v4 generates non linear UUIDS that will spread data across different linear partitions based on key or hash.

      The new UUID7 (https://uuid7.com/) will guarantee that continuous records are time sortable and a good collision resistance.

      The main advantage of UUID7 function is that it will allow to MariaDB avoid the limitation of use an unique combined primary key for time series records, where an unique ID and a date is required in order to create key/hash partitions. With UUID7 is possible only use only the key as ID and time reference.

      Right now is possible to generate UUID7 using a poor custom UDF however it may be very slow.

      Attachments

        Issue Links

          Activity

            juanparati Juan Lago added a comment -

            @Jaydeep Das: I am not MariaDB developer. I just fixed a poor function that can we use as a workaround: https://gist.github.com/juanparati/0ded9c04d4cd43e5aae8f5a438a8b18b

            juanparati Juan Lago added a comment - @Jaydeep Das: I am not MariaDB developer. I just fixed a poor function that can we use as a workaround: https://gist.github.com/juanparati/0ded9c04d4cd43e5aae8f5a438a8b18b

            Hello serg Can you please review the pull request from StefanoPetrilli:

            https://github.com/MariaDB/server/pull/3093
            ?

            The low level UUDIv7 generation code is especially interesting.
            Couldn't we reuse some of UUIDv1 code?

            Thanks.

            bar Alexander Barkov added a comment - Hello serg Can you please review the pull request from StefanoPetrilli: https://github.com/MariaDB/server/pull/3093 ? The low level UUDIv7 generation code is especially interesting. Couldn't we reuse some of UUIDv1 code? Thanks.
            danblack Daniel Black added a comment -

            note - ensure MDEV-32583 fix is applied here too.

            danblack Daniel Black added a comment - note - ensure MDEV-32583 fix is applied here too.
            serg Sergei Golubchik added a comment - - edited

            bb-11.7-MDEV-33710-uuid is ready for testing. It has both UUIDv4 and UUIDv7

            serg Sergei Golubchik added a comment - - edited bb-11.7- MDEV-33710 -uuid is ready for testing. It has both UUIDv4 and UUIDv7

            let's change the name to match what percona has

            serg Sergei Golubchik added a comment - let's change the name to match what percona has

            People

              serg Sergei Golubchik
              juanparati Juan Lago
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.