Improve performance of _matches?()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 8.1.0, 9.0.0, 8.0.4
    • Affects Version/s: None
    • Component/s: Performance
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Jason Penny
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: