-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Aloha,
storing average time as integer in the database
$table->integer('average_time'); |
might bite back... Here's why:
It limits resolution of your stats down to full seconds, minutes, whatever unit you are going to store. That is bad, just let us calculate the averagte of two views: One view with 51 seconds duration one with 10 seconds.... (For simplicity, full seconds) those values together make it up to 61 Seconds, with an average of 30.5 seconds, wich you will store as 30 or 31 seconds.
Limiting avarage time to an integer value will destroy relevant stats for your users and for some, it might render those stats as unuseable.
carloeusebi, Hakira-Shymuy and gunturdwiap
Metadata
Metadata
Assignees
Labels
No labels