Commit b9c7f4d
committed
Fix Mongo cursor pagination, SQL tenant-per-document pre-filter, and revert deferred relationships
- Mongo: set batchSize and iterate with getMore to handle >101 existing UIDs
- SQL: group by per-document tenant in pre-filter when tenantPerDocument is true
- Revert deferred relationship creation — createDocumentRelationships must run
before INSERT to prepare the document structure1 parent 9653052 commit b9c7f4d
2 files changed
Lines changed: 47 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1492 | 1492 | | |
1493 | 1493 | | |
1494 | 1494 | | |
1495 | | - | |
1496 | | - | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1497 | 1501 | | |
1498 | 1502 | | |
1499 | 1503 | | |
1500 | | - | |
| 1504 | + | |
1501 | 1505 | | |
1502 | | - | |
| 1506 | + | |
1503 | 1507 | | |
1504 | 1508 | | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1505 | 1517 | | |
1506 | 1518 | | |
1507 | 1519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2495 | 2495 | | |
2496 | 2496 | | |
2497 | 2497 | | |
2498 | | - | |
2499 | | - | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
2500 | 2514 | | |
2501 | 2515 | | |
2502 | | - | |
| 2516 | + | |
| 2517 | + | |
2503 | 2518 | | |
2504 | 2519 | | |
2505 | 2520 | | |
| |||
2508 | 2523 | | |
2509 | 2524 | | |
2510 | 2525 | | |
2511 | | - | |
| 2526 | + | |
2512 | 2527 | | |
2513 | 2528 | | |
2514 | | - | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
2515 | 2541 | | |
2516 | 2542 | | |
2517 | 2543 | | |
| |||
0 commit comments