Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5617

Improve performance of _matches?()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.1.0, 9.0.0, 8.0.4
    • Affects Version/s: None
    • Component/s: Performance
    • Labels:
      None

      Mongoid::Matcher#extract_attribute will create a BSON::Document in order to allow a hash field to have indifferent access.

      Performance of _matches?() can be improved by explicitly attempting string and symbol access.

       

       

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            jason.penny@braze.com Jason Penny
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: