Commit 40456ae
committed
test(user_ldap): speed up AbstractMappingTestCase chunking test
The testGetListOfIdsByDn test mapped a DN every 20 entries across 66k
entries, producing 3332 DB inserts just to exercise query chunking. Only
14 mapped entries are needed to exceed the 65535-value Postgres IN limit
and trigger chunking — so map every 5000th entry instead (14 inserts).
Also clarify the comment: it describes why the list exceeds Postgres's
65535-value IN limit, not a per-iteration invariant.
Signed-off-by: Anna Larch <anna@nextcloud.com>
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>1 parent c8b29c9 commit 40456ae
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
0 commit comments