We thought about improving the performance of our application by introducing another index on the join table of a many to many association.
Is there any possibility to add this index so that Jmix creates a Liquibase script for that?
As my understanding of indexes might have some gaps, correct me if I’m wrong.
The table has a index for the primary key which is composed from ids of both entities. With this the DB should find the associations in one direction fast. For the other direction we need another index, right?
As an alternative, do we have the possibility to switch the order of the columns in the join table? We are usually searching the associations from entity B, but the order in the join table is A, B.