I have a Users table and a Totals table which has an integer field for the total number of users. I thought about writing a console app that counts the Users table and then updates the Totals table. And then make a Task scheduler events that executes this app every 10 minutes. Is there a more elegant way to do this?
-
Please clarify why you need a Totals table. Is there a business requirement for it? Doing a record count of "Users" will not have a performance impact - it's an extremely fast operation.funwhilelost– funwhilelost2010-07-15 00:26:08 +00:00Commented Jul 15, 2010 at 0:26
-
It has a few other system stats besides the user total and it doesn't have to be in real time.Fasid– Fasid2010-07-15 00:31:13 +00:00Commented Jul 15, 2010 at 0:31
Add a comment
|