Skip to content

Conversation

migmartri
Copy link
Member

Changing order so the DB index work as expected

Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
@migmartri migmartri requested review from javirln and jiparis September 8, 2025 15:33
@jiparis
Copy link
Member

jiparis commented Sep 8, 2025

Please check #2423 for the fix.

@migmartri
Copy link
Member Author

not needed. The order of the conditions doesn't make a difference

@migmartri migmartri closed this Sep 8, 2025
@javirln
Copy link
Member

javirln commented Sep 9, 2025

I had it understood that the order matter on indexes: https://neon.com/postgresql/postgresql-indexes/postgresql-multicolumn-indexes

@migmartri
Copy link
Member Author

I had it understood that the order matter on indexes: https://neon.com/postgresql/postgresql-indexes/postgresql-multicolumn-indexes

That's correct, the order in the indexes matter, but not in the queries, which is what I changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants