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

Query cache: .count queries are stored under nil key

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

      Mongo::QueryCache.enabled = true
      shop.tables.count
      => 7

      shop.blockages.count
      => 7
      Thread.current["[mongo]:query_cache"].delete(nil)
      shop.blockages.count
      => 590
      shop.tables.count
      => 590

            Assignee:
            emily.giurleo@mongodb.com Emily Giurleo (Inactive)
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: