Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2340

QueryCache handle limits inefficiently

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0.rc1
    • Affects Version/s: None
    • Component/s: None
    • None

      In Mongoid's QueryCache, if a query with a specified limit is run followed by a query with a smaller limit, it is expected to query again and not use the query cache. However, this behavior is inefficient and QueryCache would be more effective if it could support using a CachingCursor for any queries with smaller limits (currently in Driver, this is supported only when the first query does not specify a limit, in which case following queries with limits will use the cache). 

            Assignee:
            emily.giurleo@mongodb.com Emily Giurleo (Inactive)
            Reporter:
            grace.chong@mongodb.com Grace Chong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: