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

CommentFileSizeAuthor
aggregator_count.patch591 bytesandypost
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost’s picture

Any reviews? Patch so simple...

aggregator_count.patch queued for re-testing.

twistor’s picture

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.

oriol_e9g’s picture

Title: Optimize count(has) quiery » Optimize count(has) query
Lars Toomre’s picture

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

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

Dries’s picture

Status: Reviewed & tested by the community » Fixed

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

Status: Fixed » Closed (fixed)

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

sun.core’s picture

Issue tags: +Performance, +Administration