Announcing pluck_in_batches - a new gem providing a faster alternative to the custom use of `in_batches` with `pluck`

This page summarizes the projects mentioned and recommended in the original post on /r/ruby

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pluck_in_batches

    A faster alternative to the custom use of `in_batches` with `pluck`

  • I released a new gem (https://github.com/fatkodima/pluck_in_batches) - a faster alternative to the custom use of in_batches with pluck. It performs half of the number of SQL queries, allocates up to half of the memory and is up to 2x faster (or more, depending on how far is your database from the application) than the available alternative:

  • Ruby on Rails

    Ruby on Rails

  • There was recently a PR into rails (https://github.com/rails/rails/pull/45414), upcoming in Rails 7.1, that already made whole table batching quite a lot faster, so I compared the performance against the Rails "main" branch.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts