Ghost/ghost/core
Steve Larson 2e593ebcee
Improved performance fetching posts (#20460)
ref https://linear.app/tryghost/issue/ONC-111
- added composite index to posts_tags for post_id,tag_id for faster
lookup
- added composite index to posts for updated_at; this is commonly used
by get helpers on the front end to display data like the latest posts

In testing, this provided a very dramatic improvement for simple get
helper requests like 'filter="id:-{{post.id}}+tag:sampleTag" limit="3"'
which are by default sorted by updated_at desc. I'm not entirely clear
why when sorting by published_at we do not need a composite index - so
far it doesn't seem to be necessary. This should cover the primary cases
for get helpers - the latest posts with a given tag or set of tags.
2024-06-26 16:29:02 -05:00
..
content 🎨 Updated Source to v1.2.3 2024-06-06 08:34:57 +00:00
core Improved performance fetching posts (#20460) 2024-06-26 16:29:02 -05:00
test Improved performance fetching posts (#20460) 2024-06-26 16:29:02 -05:00
.c8rc.e2e.json
.c8rc.json
.eslintignore
.eslintrc.js
.npmignore
config.development.json
ghost.js
index.js
jsconfig.json
loggingrc.js
MigratorConfig.js
monobundle.js
package.json Update Koenig packages (#20453) 2024-06-26 14:48:17 +01:00
playwright.config.js