RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in