Skip to content

[1.0.0] Address some subsearch scaling issues for the server.#209

Merged
ChadSikorra merged 3 commits into
FreeDSx:mainfrom
ChadSikorra:upgrade/subsearch-perf
Jul 11, 2026
Merged

[1.0.0] Address some subsearch scaling issues for the server.#209
ChadSikorra merged 3 commits into
FreeDSx:mainfrom
ChadSikorra:upgrade/subsearch-perf

Conversation

@ChadSikorra

Copy link
Copy Markdown
Contributor

When the size of the directory scales (1k -> 10k -> 30k) the performance for subsearch server side starts to drop. That is due to PDO sub queries needing having broad selects / scans even though there's always a LIMIT set on the outer query. This addresses two of those cases, but a few still exist that I need to follow up on. I've added additional search types to the load test to validate them.

Most search types are actually either sub-ms or 1 - 2 ms. However, subsearch is basically flat and lands anywhere from 15 - 25 ms (when the search limit is hit + max attributes are selected), and that's largely encoding / decoding time with ASN1. I can perhaps optimize some of that a bit more (but it will be ugly). So these fixes just make sure that timing stays flat rather than balloons when directory size goes up. Current search performance is "acceptable" IMO.

@ChadSikorra ChadSikorra merged commit fe068bb into FreeDSx:main Jul 11, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant