Download & Extend

Optimize count(has) quiery

Project:Drupal core
Version:8.x-dev
Component:aggregator.module
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Administration, Performance

Issue Summary

This place only ensures that category exists so should be converted to optimized "exist" query type

AttachmentSizeStatusTest resultOperations
aggregator_count.patch591 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 33,543 pass(es).View details

Comments

#1

Any reviews? Patch so simple...

aggregator_count.patch queued for re-testing.

#2

Status:needs review» reviewed & tested by the community

It works. I actually think it makes the intention of the code clearer as well. It checks that a category exists rather than how many exist.

#3

Title:Optimize count(has) quiery» Optimize count(has) query

#4

Title:Optimize count(has) query» Optimize count(has) quiery

This makes sense and helps avoid COUNT(*) query in MySQL Innodb tables (good!!).

#5

Status:reviewed & tested by the community» fixed

Committed to 7.x and 8.x. Thanks.

#6

Status:fixed» closed (fixed)

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

#7

Issue tags:+Administration, +Performance
nobody click here