06-03-2008, 01:53 PM
|
#4 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: England, UK
Posts: 83
Thanks: 3
|
Quote:
Originally Posted by Jmz
Is it feasible to add a new entry into the database every time someone accesses the site? There could be say a hundred sites with a thousand hits a day, that's a lot of inserts into my db!
|
It's feasible if you empty the access table once a week, using a cronjob for example. It depends what type of statistic you're looking to track - amount of hits? user browsers?
If you're just looking for a simple hit counter it could be easier to have an attribute for each site called `hits` which you UPDATE every time someone visits the site.
|
|
|
|