mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 12:23:42 +08:00
1f71db426e
Why this change? Previously, we identified that ActiveRecord's PostgreSQL adapter executes 3 db queries each time a new connection is created. The 3 db queries was identified when we looked at the `pg_stats_statement` table on one of our multisite production cluster. At that time, the hypothesis is that because we were agressively reaping and creating connections, the db queries executed each time a connection is created is wasting resources on our database servers. However, we didn't see any the needle move much on our servers after deploying the patch so we have decided to drop this patch as it makes it harder for us to upgrade ActiveRecord in the future. |
||
---|---|---|
.. | ||
mail_disable_starttls_spec.rb | ||
safe_buffer_spec.rb | ||
schema_migration_details_spec.rb | ||
translate_accelerator_spec.rb | ||
web_push_spec.rb |