Rails 7 adds the ability to schedule the query on the background thread pool

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 #thread https://rubyonrails.ba/single/rails-7-adds-the-ability-to-schedule-the-query-on-the-background-thread-pool

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles