Closed coyotemarin closed 13 years ago
I'm leaning towards using count(*)
for total
, and calculating updated
from the other parts of the table (since this should be the majority of rows in most cases).
Oh, though in some edge cases that would lead to a negative value for updated
.
Maybe best to leave well enough alone?
This is done in development
.
So, in practice, when you call
stats()
, it's pretty common to want to know the total number of rows. We should probably have atotal
stat even though it's redundant.To save time and confusion, maybe we shouldn't
SELECT COUNT(*)
, and instead just take the sum ofbumped
,locked
,new
, andupdated
.