Closed electronick86 closed 3 years ago
I haven't encountered this yet, but wow....11 seconds to 385ms, that's amazing!
@electronick86 that's quite amazing. Could you send a PR to the v3 branch that adds this index to the default migration?
Added in the v3 branch
Hello!
One of the project I'm working on with mailcoach (currently v2.23.13) has 800k subscribers. Once the subscribers are imported, the routes
mailcoach.emailLists
andmailcoach.emailLists.subscribers
becomes very slow.I saw (thanks telescope) thatone query tooks ~10seconds...(on my macbook pro 16 with valet and also on a 8vcpu server) I think one new index could be created. Can you give me your point of view?
Execution time : 11.544 s
With this index created, same request take 385 ms .
Do you see any downside to create this extra index. There is no so many insert/updates to this table. Or a better way to solve this problem?
Thanks!