Closed jgimenez closed 1 year ago
After a few thousand emails are stored in the database the application becomes sluggish, up to the point it just times out.
Creating this index resolves the issue:
CREATE INDEX idx_project_id_message_id ON email(project_id, message_id) USING HASH;
Hello!
Thanks for you suggestion! I'll add it with closest updates
Added a new migration with index on email table.
Run ./bin/console doctrine:migrations:migrate -n to apply migration
./bin/console doctrine:migrations:migrate -n
After a few thousand emails are stored in the database the application becomes sluggish, up to the point it just times out.
Creating this index resolves the issue: