Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This place only ensures that category exists so should be converted to optimized "exist" query type
Comment | File | Size | Author |
---|---|---|---|
aggregator_count.patch | 591 bytes | andypost | |
Comments
Comment #1
andypostAny reviews? Patch so simple...
aggregator_count.patch queued for re-testing.
Comment #2
twistor CreditAttribution: twistor commentedIt 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.
Comment #3
oriol_e9gComment #4
Lars Toomre CreditAttribution: Lars Toomre commentedThis makes sense and helps avoid COUNT(*) query in MySQL Innodb tables (good!!).
Comment #5
Dries CreditAttribution: Dries commentedCommitted to 7.x and 8.x. Thanks.
Comment #7
sun.core CreditAttribution: sun.core commented