Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When saving a data object, index definitions are not applied to the object_query table. #5031
In my product's class definition there is a field called "remoteId". I recognized performance issues in relation with the product, so I revised the field's index definition:
First of all, the field is marked as "unique", so I assumed that the database definition (object_query_product) would contain a key with a "unique index" definition, or at least a non-unique index. However this was not the case.
Steps to reproduce
Your Version: v5.8.0
I just figured out, that in
see https://github.com/pimcore/pimcore/blob/master/models/DataObject/ClassDefinition/Helper/Dao.php#L44: enabled is false in my case for the object_query table.
Please see my screenshot:
Is this on purpose? In my opinion, the query table should at least receive an (non-unique) index.