3 ms·
How do you get Rails models querying the db to use threads and not block the whole process from accepting other requests?
by stevebmark 4y ago
How do you get Rails models querying the db to use threads and not block the whole process from accepting other requests?
- ericb 4y agoTake a look into the ActiveRecord connection pool: https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html https://api.rubyonrails.org/classes/ActiveRecord/ConnectionA...