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.
Aloha,
storing average time as integer in the database
panstorm.com/database/migrations/2025_01_16_221857_create_pages_table.php
Line 22 in b4645ab
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.