Mongoload

Build Status

Mongoload is a gem to perform eager loading automatically for Mongoid, inspired by Goldiloader.

Usage

Just install Mongoload. It will automatically eager load your reference relation the first time you access it.

Install

Add this line to your application's Gemfile:

gem 'mongoload'

Or install it yourself as:

$ gem install mongoload

TODO

  • option to perform eager loading when calling following methods on an many/many_to_many relation:
    • size
    • first
    • last
  • option to disable eager loading on specific relation

Copyright (c) 2016 Kaloku Sang

See LICENSE.txt for details.