Search code examples
pimcore

what is the point of using the UUID tool in pimcore?


What is the point of using the UUID tool in pimcore?

I'm a symfony developer, and used to work with uuid's for all my entities but with pimcore there is always a integer ID present.

Is the uuid used in the graphql api?

Please give your best advice why/why-not to use the uuid-tool.


Solution

  • Universally unique identifier (UUID) per RFC 4122 is one of the most popular UIDs in the software industry. It is supported both by Symfony and Pimcore.

    Benefits to use UUID instead of ID are:

    • you hide real database id from hacker
    • identifier can be independent from auto incremental value of your db table. It allows to create Globally Unique IDentifiers that will not conflict on next dump import.

    Here you can find the answer about UUID usage in GraphQL.