I have a fairly big table, let's call that 2B records split evenly between 200 partitions (SQL Server 2012). Every day, I have a process that takes 6 hours to create a new partition and insert 10 million rows in it.
I'm having some performance when i try to join a partition to a summarized view of that partition (10M vs 100 records). I think that if i used a indexed views instead of a sub query, i could improve the performance of my reporting, but I'm a little concerned if there are any performance issues with the inserts.
It takes about 30secs to calculate the summarized view, it will be cost (time) prohibitive if summaries view get update after every insert (x10M)
So, i will like to know if asummarized indexed view get refresh: after every insert, or the next
time a user read from the indexed view?
Thanks in advance