Rails 7 adds the ability to schedule the query on the background thread pool
01-Apr-2021 1305
These queries get executed sequentially which in most cases isn’t a big deal. However, as our database grows in size, response times get longer and longer. A large part of the query time is often just I/O waits. Assuming that each query takes 50ms to finish, these two statements would take 100ms in total. However, if executed in parallel, the I/O waits can be reutilized to perform the next execution.
Rails 7 adds the ability to schedule the query on the background thread pool #ruby #rubydeveloper #rubyonrails #Rails #ability #schedule #query #background #thread #thread https://rubyonrails.ba/link/rails-7-adds-the-ability-to-schedule-the-query-on-the-background-thread-pool