mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
- by default, the model will auto-refresh when you save - in MySQL, which doesn't support RETURNING, this is implemented by doing a SELECT after your actual query - `email_recipients` is a huge table and `processed_at` is not an indexed column, so the query times can become realllyyyyyyy big - given we don't even need the result of the model save, we can just disable fetching all the affected records again - Bookshelf gives us this ability in the form of `autoRefresh: false` |
||
---|---|---|
.. | ||
bulk-email-processor.js | ||
index.js | ||
mailgun.js |