Ghost/ghost/core/test/regression
Fabien "egg" O'Carroll 2cd50d47af 🐛 Fixed superfluous DB queries on Collection save
We have a global hook for the bookshelf-relations plugin which updates the
sort_order for pivot tables when saving the parent model. This hook requires
that we fetch each row in the pivot table related to the model and then run an
update on each one. Since we have a "latest" Collection this means at least N
update queries where N is the number of Posts for a site. For large sites this
was crippling the database. We only need the sort_order to be updated for
Collections with a type of "manual". We currently don't have a way to disable
the update based on model attributes, so instead we have disabled the update for
all Collections - this is okay because 1. Collections is not released and 2. we
don't have full support for manual Collections yet anyway.
2023-08-02 15:19:47 +01:00
..
api Replaced Bluebird Promise.mapSeries with sequence util (#17008) 2023-06-23 09:04:37 +02:00
mock-express-style Extracted regression tests to a separate workflow 2023-06-13 16:47:19 +02:00
models 🐛 Fixed superfluous DB queries on Collection save 2023-08-02 15:19:47 +01:00
site Removed all unused variables from test files 2023-03-10 14:29:55 +01:00