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

QueryCache: Add ActiveJob wrapper

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.18.0
    • Affects Version/s: None
    • Component/s: Query
    • Labels:
    • Fully Compatible

      Similar to how Mongoid provides QueryCache Middleware, it would be nice if Mongoid provided a way to blanket-enable Querycache for ActiveJob (per-job)

      This could be done using theĀ around_perform callback

      https://edgeguides.rubyonrails.org/active_job_basics.html#available-callbacks

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: