Our great sponsors
-
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.
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:
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.