mySQL queries are costly, and we query the entire x entries when getting data for the last day/week/month/year when all we really need is the new data. This will speed things up the most for the year/all-data so given the complications related to when the script last ran, etc. it might make sense to only change this for those files.
mySQL queries are costly, and we query the entire x entries when getting data for the last day/week/month/year when all we really need is the new data. This will speed things up the most for the year/all-data so given the complications related to when the script last ran, etc. it might make sense to only change this for those files.