I need to do lots of filtered counts, similar to the counting done on Ebay or Amazon. eg. Cars(34500), Car Colors - Blue(3000), Red(2000), Silver(5000) ..... etc.I have my standard count query:select count(*), item from tablegroup by itemI also added a non-clustered index based on item, which on average produces the results from one million records in 150 ms.Each different item count adds another approx 150 ms to the total.So far at five different item counts the query time is approx 750ms to 780ms.I need to add more counts but want to keep the query as fast as possible, is creating a SQL Indexed View for each item the only faster solution?http://www.sqlbadpractices.com/I found the above thread regarding SQL Indexed View performance on two million records, and it seems to offer a substantial performance increase.Is that typically how companies like Ebay and Amazon do it? Thanks
↧