Jump to content

record site activity via DB?


efficacious

Recommended Posts

I have setup a table in my DB for recording activity on the website.. the site records basic information every time a user visits a page: the id of the user, the current time, the current date, the page the user was visiting, and the users IP information. So far it seems to be working very well. But I am a bit worried that the table will become extremely cumbersome. For instance atm I am the only person who knows of the site and visits it so just from my activity on the site there is 91 records. Should I be worried about this becoming a problem when the site is open to more users? Any1 have any suggestions of a better way?  Thanks for your replies.

Link to comment
Share on other sites

well i figured it was either log it in the DB or to a text file and with the DB option I can use the records to check for other users online status as well as other things..

 

Good tip with DELAYED modifier for the INSERT statements.. I never heard of that before. thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.