The Camunda engine by default uses a UUID (Universally Unique Identifier) generator to create unique IDs for processes, cases, and other entities. Some users have expressed concerns about the use of this generator, specifically regarding its performance implications.
Users have pointed out that the UUID generator can lead to slower database index performance due to the alphanumeric nature of the IDs generated. In comparison, numeric primary key IDs would be expected to provide better performance with indexing.
Some users suggested that Camunda should use database-specific ID generation methods, such as database sequences or implicit sequencing, similar to how other databases manage primary keys.
UUID Generator | Database ID Generation | |
---|---|---|
ID Format | Alphanumeric (25 chars) | Numeric |
Index Performance | Slower due to alphanumeric nature | Faster with numeric IDs |
Example | 4e62ad7b-df4d-4a1a-8c82-f22524d18a09 |
123456789 |
The database-centric approach appears to offer better performance compared to the UUID generator. However, it may require implementing a custom ID generator.