0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server
Daniel Lockyer 1c7d4e49c5
Disabled model auto-refresh when processing email batches
- 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`
2022-05-10 18:11:15 +01:00
..
adapters 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00
api Included newsletter relation by default in posts (#14723) 2022-05-09 11:06:59 +02:00
data Regenerated HTML for posts containing a product or video card 2022-05-10 18:05:27 +01:00
lib Added gravatar URL to config to make it configurable (#14490) 2022-05-09 12:44:04 +01:00
models Dropped subscribed column in members table 2022-05-09 16:47:43 +01:00
services Disabled model auto-refresh when processing email batches 2022-05-10 18:11:15 +01:00
views
web Update dependency @tryghost/mw-error-handler to v1 (#14719) 2022-05-07 15:28:28 +01:00
analytics-events.js
ghost-server.js Removed config and bluebird from ghost-server 2022-04-28 15:37:10 +01:00
notify.js
overrides.js
run-update-check.js
update-check.js 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00