-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
The driver currently invalidates the query cache on every write. This is inefficient because users can only read or write from one collection at a time, so it doesn't make sense to invalidate ALL cached cursors on a single write. To fix this, let's restructure the query cache to key first by collection, and then only invalidate the cache for the collection that's being written to.