mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
a0b7476794
ref https://linear.app/tryghost/issue/ENG-826 - Changed staff deletion logic to do a bulk insert when adding a tag to the users' associated posts Staff deletion logic has really poor performance at scale because we do individual updates for every post. If a user has dozens+ posts (especially in a large db with thousands of posts), this can take >60s and look like a timeout. Ultimately this should probably be a jobbed off process, but for the time being we can improve this by doing a bulk insert. Note that this update uses the pattern for the bulk tagging of posts from the right click (bulk) actions in the posts lists in Admin. With bulk actions, **we do not trigger web hooks or the post.edited events**. We will document this and follow up on this separately. |
||
---|---|---|
.. | ||
__snapshots__ | ||
authentication.test.js | ||
db.test.js | ||
identities.test.js | ||
images.test.js | ||
members-importer.test.js | ||
members-signin-url.test.js | ||
notifications.test.js | ||
pages.test.js | ||
posts.test.js | ||
redirects.test.js | ||
schedules.test.js | ||
settings.test.js | ||
slack.test.js | ||
update-user-last-seen.test.js | ||
users.test.js | ||
utils.js | ||
webhooks.test.js |