Problem/Motivation

Currently in ContentEntityRevisions::getPartialItemIds, we currently do 1 query for the entities, and then another for each entity returned by the first query to get all the revision ids. We don't need to do that - we can get all revision ids in a single query. This will massively decrease the number of queries required.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

acbramley created an issue. See original summary.

acbramley’s picture

Status: Active » Needs review

  • acbramley committed 5abb0688 on 2.x
    Issue #3420969 by acbramley: Use an entityQuery in getPartialItemIds
    
acbramley’s picture

Status: Needs review » Fixed

Included some phpcs fixes too.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.