Use sequences instead of auto increment keys for user facing identifiers #19650
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
Several unique identifiers in the Matomo UI are based on auto incrementing database primary keys, such as the site id or goal id.
When using an alternative database which uses random or UUID primary keys these values will become long, random and unfriendly to use. In order to support databases with primary key types other than auto increment these identifiers should be migrated to sequences rather than primary keys.
Suggested Approach
sequence
table and then specify it explicitly on insert.Keys that are shown in the UI
idSite
,idCustomDimension
,idCustomReport
,idGoal
,idForm
, the keys for most sub-categories under Administration > Measurables.There may be others.
The text was updated successfully, but these errors were encountered: