Skip to content

database: page upsertRepoPermissionsBatchQuery

Warren Gifford requested to merge database/perms-parameter-limit into main

Created by: bobheadxi

Paginates permissions insertion for repos a user has access to. Because of Postgres's parameter limit, user-centric permissions sync can fail on instances with more than ~15000 repositories that a user can access.

Affects upsertRepoPermissionsBatchQuery

Closes https://github.com/sourcegraph/sourcegraph/issues/24851 , closes https://github.com/sourcegraph/customer/issues/485

Merge request reports

Loading