0

I have 4 table A, B, C and D (with 100.000-200.000 records). All record count on that table will be used again and really often. Insert and count process often used, almost every 500-1000 milliseconds. Count process not a simple select count(*) from table, but it use where to pointing to data that need to be count. I need 50-100 milis count process

Which one is faster?

Save select count() result in table and update its data every insert

or

Select count() when it's needed?

0 Answers0