Description
Testing a table with 280 columns, I found the following performance characteristic:
- scanning all 280 columns with a selective non-key predicate which matches 0 rows took 8.28s
- scanning no columns (count query) with the same predicate which matches 0 rows took 314ms.
This suggests that we are burning 96% of our CPU doing useless work for this query.