Implement caching cursor in driver

XMLWordPrintableJSON

    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the query cache, as implemented by Mongoid, duplicates a portion of driver's cursor code plus adds the query caching on top. This has two issues:

      1. The code that was copied is by now outdated. It uses legacy read retries, performs server selection in an outdated way, etc.
      2. Changes to the driver can break the query cache, due to the query cache's reliance on driver internals.

      Since the query cache operates on collection/operation/cursor level, it can be implemented in the driver, with Mongoid only exposing the implementation using a (more) convenient API.

            Assignee:
            Grace Chong (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: