WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2008, 06:01 PM
wige wige is offline
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,504
wige RepRank 4wige RepRank 4wige RepRank 4
Default Good idea to track pageviews with MySQL?

I am looking for a way to track how many times different pages are visited on my site. I am considering using a MySQL table to do this, so that I can link the information to other tables and create recommendations customized for a user based on what products that user has already viewed, as well as creating lists of popular products for other users.

My dilemma is, would this be efficient, or would I be wasting resources by storing this data in a database instead of a log file? I would hope I would be able to analyze the database in real time and avoid the overhead of constantly parsing a frequently accessed log file, but if it would drain the resources of the server, I would have to find a different solution.

Your thoughts, comments, advice and suggestions are appreciated.
__________________
The best way to learn anything, is to question everything.
Interestingly Average Security Blog
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 06:21 PM
Tech Manager Tech Manager is online now
WebProWorld Pro
 

Join Date: Jan 2008
Posts: 177
Tech Manager RepRank 1
Default Re: Good idea to track pageviews with MySQL?

Wige:

One of my clients averages about 70,000 hits a day and I store his data in a MySQL database and analyze the data in real time.

Another client averaging about 50,000 hits day relies on a log file and parser. Real time analysis is a bit slower.

I think the higher the data volume the better off you will be to rely on a database instead of a logfile. With the right table design the performance hit has been negligible when analyzing the database in real time.

I prefer the MySQL solution. But of course the typical considerations apply: CPU, RAM, MySQL version, etc.
__________________
I use Country IP Blocks as added security for my networks and servers.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this a good idea? AllThePieces Search Engine Optimization Forum 8 10-19-2005 01:48 PM
It Seemed Like A Good Idea At The Time… jmiller Breakroom (General: Any Topic) 6 09-06-2005 12:24 PM
My own server - Good Idea or Bad? jacobwissler Google Discussion Forum 16 08-21-2005 12:55 AM
Is Hula a good idea? WPW_Feedbot IT Discussion Forum 0 02-16-2005 03:00 PM


Search Engine Friendly URLs by vBSEO 3.0.0