Skip to content

Conversation

jvolmer
Copy link
Contributor

@jvolmer jvolmer commented Jun 3, 2025

We use the possibly expensive starts_with as a post-filter. The sorting makes sure that the documents that start with the given key are given first to the limit.
This only works if we filter by key instead of id, therefore the query is rewritten such that we only use keys instead of ids.

@jvolmer jvolmer self-assigned this Jun 3, 2025
@jvolmer jvolmer requested a review from a team as a code owner June 3, 2025 07:31
@cla-bot cla-bot bot added the cla-signed label Jun 3, 2025
Copy link
Contributor

@palashkaria palashkaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jvolmer jvolmer changed the base branch from 3.12.4 to devel June 3, 2025 11:46
@jvolmer jvolmer requested a review from a team as a code owner June 3, 2025 11:46
@jvolmer jvolmer force-pushed the feature/improve-performance-of-graph-settings-query branch from 6a5e499 to b7166d5 Compare June 3, 2025 11:54
@goedderz goedderz changed the title Improve performance of graph settings query [BTS-2149] Improve performance of graph settings query Jun 3, 2025
@goedderz goedderz merged commit da0829f into devel Jun 3, 2025
1 of 2 checks passed
@goedderz goedderz deleted the feature/improve-performance-of-graph-settings-query branch June 3, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants