Mongory v2.1.1: C99-backed in-memory MongoDB-style query engine for Ruby
Mongory v2.1.1 is a zero-dependency in-memory MongoDB-style query and rule engine for Ruby arrays, hashes, and objects. It supports both a chainable Ruby DSL and raw JSON rules, compiles queries once into a C99 core with precompiled native gems for 8 platforms (Ruby 2.6-4.0), and includes explain and trace trees for debugging complex conditions.
In local benchmarks, simple filters stay close to plain Ruby while running ~31x-41x faster than Mongoid::Matcher on standard queries (~840x on 500-item $in). You can try the syntax live in the browser playground.
Post a comment