Rails 7 adds query scheduling in the background thread pool
Asynchronous querying reduces the query time significantly as opposed to running multiple queries serially. This may not be a big issue in small applications that handle a small amount of data, however, as the database grows in size the response time for these queries also grows.