インデックスが配置されており、絶対カウント精度が不要であると仮定すると (1 つまたは 2 つずれても問題ありません)、使用しても問題ありません。
オプション A
select count(*)
from Table
where Property = @Property
対
オプション B
update PropertyCounters
SET PropertyCount = PropertyCount + 1
where Property = @Property
次に行う:
select PropertyCount
from PropertyCounters
where Property = @Property
テーブルが数千または数百万のレコードに成長するにつれて、 select count(*) を実行することでどの程度のパフォーマンス低下が合理的に期待できますか?