Closed phamann closed 12 months ago
@phamann this passes the tests on other DB types. Let me know if you want to add the precondition discussed before merge.
<changeSet>
<preConditions onFail="MARK_RAN">
<indexExists indexName="IDX_ORGANIZATION_ATTRIBUTE" />
</preConditions>
...
</changeSet>
Completed in #145 145
What?
Adds a database index to the
ORGANIZATION_ATTRIBUTE
table on theORGANIZATION_ID
column, to improve query performance when searching orgs by attribute such as/realms/:realm/orgs?q=foo=bar
.Why?
We've noticed slow queries to the search endpoint when querying a database with both a lot of orgs and with each org having a lot of attributes.
Example slow queries: