Почему COUNT(*) быстрее, чем COUNT(col) — и когда это не так
Сегодня поговорим про одну из тех тем, что вроде бы тривиальна, но до последней капли грязи тащит за собой внушительный пласт вопросов. Речь пойдёт про COUNT(*) и COUNT(col) в PostgreSQL.
Почему COUNT(*) быстрее, чем COUNT(col) — и когда это не так
Сегодня поговорим про одну из тех тем, что вроде бы тривиальна, но до последней капли грязи тащит за собой внушительный пласт вопросов. Речь пойдёт про COUNT(*) и COUNT(col) в PostgreSQL.
Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them. A Hong Kong protester with a petrol bomb. File photo: Dylan Hollingsworth/HKFP. With the administration mulling over limiting access to doxxing groups, a prominent Telegram doxxing group apparently went on a "revenge spree." A vandalised bank during the 2019 protest. File photo: May James/HKFP. Matt Hussey, editorial director of NEAR Protocol (and former editor-in-chief of Decrypt) responded to the news of the Telegram group with “#meIRL.”
from us