Ghost/ghost/core/test/unit/server/data
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
..
db Added config option to disable db backups (#19614) 2024-02-01 12:09:41 -06:00
exporter Added portal default plan setting (#19238) 2023-12-06 11:39:58 +01:00
importer Fixed importer breaking any posts written in the new editor (#17230) 2023-07-06 18:37:19 -07:00
migrations Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
schema Improved performance fetching posts (#20460) 2024-06-26 16:29:02 -05:00