chore(migration): Re-run database migration job for caching. (#8581)

A support request that came to Chatwoot Cloud revealed that the job was timed prematurely. The default timeout for Sidekiq queues was set as 25 minutes in sidekiq.yml file. The cache was not created properly for the accounts with more than 100k conversations.

This change removes the cache logic in the previous migration and creates a new migration with a new job which processes conversations in batch.
This commit is contained in:
Pranav Raj S
2023-12-18 17:29:02 -08:00
committed by GitHub
parent 0b2f539ad0
commit 00eb5b152a
5 changed files with 33 additions and 22 deletions

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_12_11_010807) do
ActiveRecord::Schema[7.0].define(version: 2023_12_19_000743) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "pg_trgm"