Version: Mongoid 7.0.5
I enabled the query cache middleware in production and I'm seeing:
Mongo::Error::InvalidCursorOperation
Cannot restart iteration of a cursor which issued a getMore
vendor/bundle/ruby/2.6.0/gems/mongo-2.13.0/lib/mongo/cursor.rb:152
It appears that any attempt to use "getMore" fails with the query cache.
Is this known behavior? Is it fixed in a newer version (7.1?)
According to the docs:
> Note that if the number of results is too large to be returned in a single batch, the QueryCache will not be used, even if Mongoid::QueryCache.enabled is true.
This would imply to me that the query should still succeed, just without being cached...
- duplicates
-
MONGOID-4820 QueryCache raise on recalled getMore queries
- Closed
-
RUBY-2366 Use readPreference and readConcern in query cache key
- Closed