3 ms·Counting More Efficiently2 points by freedude 3y agodave4420 3y agoI’m horrified that this sort of thing is necessary to efficiently query a modern database. (SQL Server in this case.) It feels like something the query planner should be able to do itself.