Skip to content

[stable34] perf(user_ldap): chunk oracle queries for lower bind cost#60978

Open
backportbot[bot] wants to merge 1 commit into
stable34from
backport/60930/stable34
Open

[stable34] perf(user_ldap): chunk oracle queries for lower bind cost#60978
backportbot[bot] wants to merge 1 commit into
stable34from
backport/60930/stable34

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented Jun 4, 2026

Backport of PR #60930

Oracle's OCI8 driver binds each named parameter individually via
OCIBindByName, making queries with 65 000 parameters dramatically
slower than on MySQL or PostgreSQL — slow enough to time out in CI
and degrade production LDAP syncs on large installations.

Lower maxSlices to 5 for Oracle (5 000 params/query) via a match
expression alongside the existing SQLite special-case. SQLite and
all other databases are unchanged.

Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: Anna Larch <anna@nextcloud.com>
@backportbot backportbot Bot requested a review from a team as a code owner June 4, 2026 10:06
@backportbot backportbot Bot requested review from Altahrim, artonge, come-nc, miaulalala, provokateurin and salmart-dev and removed request for a team June 4, 2026 10:06
@backportbot backportbot Bot added this to the Nextcloud 34.0.1 milestone Jun 4, 2026
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.

2 participants