Add new index to node_field_revision

Created on 8 September 2023, about 1 year ago

Problem/Motivation

Follow up from πŸ› The latest_revision ViewsFilter has poor performance Fixed

@dewalt

I propose also to add new index on node_field_revision table, in my case it extremely increase a performance:
- revision_translation_affected
- nid
- vid

Looks like temporary table constructed in $subquery isn't cached by MariaDB engine. We have much content and more that 100k revisions. Having a dashboard with 4 node revision views (each use "Is Latest Translation Affected Revision" filter) I have the next times of the page render (I make `drush cr` before each load):

Core: 7m 15s
Core+index: 40s
Patch #25: 3m 40s

Steps to reproduce

NA

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated about 5 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024