Skip to content

Should we limit key values to varchar(50)? #41

@MichaelRoosz

Description

@MichaelRoosz

When running
core:convert-to-utf8mb4
I got for table log_visit:
[Zend_Db_Adapter_Exception] SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs

My setup has 20 custom variables and 15 custom dimensions in scope visit.
To fix this, I decided to convert some of the custom_var_k* columns to varchar(100) as 100 chars for the key still seem to be long enough.

I think this change would make sense for 99% of matomo users and would give an easier upgrade path for big Matomo 3.x setups

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions