ActiveRecord VS Mongoid

Compare ActiveRecord vs Mongoid and see what are their differences.

Mongoid

Ruby ODM framework for MongoDB (by mongodb)
Our great sponsors
  • talent.io - Download talent.io’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
  • SonarLint - Clean code begins in your IDE with SonarLint
ActiveRecord Mongoid
0 5
47,163 3,903
- 0.3%
- 9.6
almost 2 years ago 3 days ago
Ruby
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ActiveRecord

Posts with mentions or reviews of ActiveRecord. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning ActiveRecord yet.
Tracking mentions began in Dec 2020.

Mongoid

Posts with mentions or reviews of Mongoid. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-07.
  • A routine gem update ended up creating $73k worth of subscriptions
    4 projects | news.ycombinator.com | 7 Jan 2022
    The changelog for 7.1 (https://github.com/mongodb/mongoid/blob/master/docs/release-...) even explicitly call this out as a breaking change:

    *Breaking change:* In Mongoid 7.1, when condition methods are invoked on a

    4 projects | news.ycombinator.com | 7 Jan 2022
    The mongoid repository (https://github.com/mongodb/mongoid) doesn't have issues turned on and instead points people to JIRA. That's one way to avoid users reporting issues like this - I'd see JIRA and "nope" right out.
    4 projects | news.ycombinator.com | 7 Jan 2022
  • Unable to build and deploy Rails 6.0.4.1 app on heroku - Throws gyp verb cli error
    7 projects | reddit.com/r/Heroku | 17 Dec 2021
    source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.7.3' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 6.0.3', '>= 6.0.3.7' gem 'mongoid', git: 'https://github.com/mongodb/mongoid.git' # Use Puma as the app server gem 'puma', '~> 4.1' # Use SCSS for stylesheets gem 'sass-rails', '>= 6' # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker gem 'webpacker', '~> 4.0' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.7' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use Active Model has_secure_password # Use Active Storage variant # gem 'image_processing', '~> 1.2' gem 'axlsx' gem 'caxlsx_rails' #Bootstrap for UI gem 'bootstrap', '~> 5.1.0' gem 'bootstrap-timepicker-rails', '~> 0.1.3' gem 'bootstrap-select-rails', '~> 1.6', '>= 1.6.3' #JQuery Rails gem 'jquery-rails' gem 'rails_12factor', group: :production # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.4.2', require: false group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. gem 'web-console', '>= 3.3.0' gem 'listen', '~> 3.2' gem 'pry' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' end group :test do # Adds support for Capybara system testing and selenium driver gem 'capybara', '>= 2.15' gem 'selenium-webdriver' # Easy installation and use of web drivers to run system tests with browsers gem 'webdrivers' gem 'cucumber-rails', require: false gem 'database_cleaner' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] #HTTParty for RESTful API calls gem 'httparty' #Paperclip for storing files gem 'paperclip' gem "mongoid-paperclip", :require => "mongoid_paperclip" gem "letter_opener", :group => :development r

What are some alternatives?

When comparing ActiveRecord and Mongoid you can also consider the following projects:

Sequel - Sequel: The Database Toolkit for Ruby

ROM - Data mapping and persistence toolkit for Ruby

Redis-Objects - Map Redis types directly to Ruby objects

MongoMapper - A Ruby Object Mapper for Mongo

DataMapper

Hanami::Model - Ruby persistence framework with entities and repositories

NoBrainer - Ruby ORM for RethinkDB

Ohm - Object-Hash Mapping for Redis