ruby-batch-loader

Powerful tool to avoid N+1 DB or HTTP queries

Description

This library provides a generic lazy batching mechanism to avoid N+1 DB queries, HTTP queries, etc.

Highlights
 * Generic utility to avoid N+1 DB queries, HTTP requests, etc.
 * Adapted Ruby implementation of battle-tested tools like Haskell Haxl, JS
   DataLoader, etc.
 * Batching is isolated and lazy, load data in batch where and when it's
   needed.
 * Automatically caches previous queries (identity map).
 * Thread-safe (`loader`).
 * No need to share batching through variables or custom defined classes.
 * No dependencies, no monkey-patches, no extra primitives such as Promises.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/exAspArk/batch-loader


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install ruby-batch-loader