Commit 5903ab9
committed
Fix concurrent projector cache test to avoid DB queries in thread loop
Move database query outside thread loop to properly test concurrent access
to the same document instance. This eliminates 1000 DB queries, reduces
connection pool contention, and makes the test faster and more reliable.
Addresses review comment: mongodb#6112 (comment)1 parent ab4b7e3 commit 5903ab9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
451 | | - | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
0 commit comments