You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting read pref after populate in query chain causing main query run on secondary while populated one on primary #15553
Interesting but in the first case both queries are run on secondary, while in second case in mongoose logs with enabled debug i see that only Vendor.find is run on secondary, while .populate('populateItems') is run on primary.
Is it expected documented behavior that i missed or a bug?
Activity
fix(query): propagate read preference to populate if `read()` called …
test: cover a couple of additional cases for #15553
fix: better handling for existing read preferences in populate option…
Merge branch 'master' into vkarpov15/gh-15553
fix(query): propagate read concern to populate if readConcern() calle…
Merge pull request #15567 from Automattic/vkarpov15/gh-15553
fix(populate): refresh inherited read options on query clones re Auto…
test(populate): keep clone regressions separate re Automattic#15567 A…
test(populate): wait for fixture replication re Automattic#15567 Auto…
test(populate): isolate fixtures from replication lag re Automattic#1…
test(populate): cover clone execution order re Automattic#15553
test(populate): cover null read option inheritance re Automattic#15553
fix(populate): inherit read settings for null options re Automattic#1…
test(populate): cover per-model read defaults re Automattic#15553
test(populate): distinguish query and model defaults re Automattic#15553
fix(populate): keep schema read defaults local re Automattic#15553
test(populate): cover deferred read inheritance re Automattic#15553
fix(populate): inherit read settings in deferred queries re Automatti…