Jump to content

What is the best way to track page views in a forum?


johnsmith153

Recommended Posts

What is the best way to track page views in a forum?

 

(1) Every page view to add a record to a db table then search every time user views post (could have millions of records in the "page views" table)

(2) Every page view to UPDATE the topic record (first search and return current page views and then add 1)

(3) number (1) above, but use a CRON job to organise things better behind the scenes (e.g. CRON sorts data and UPDATES the topic record.

(4) Something else.

 

I am not bothered about if you should track every page view / track unique IP etc. just how would be best to do the database side of things.

What is the best way to track page views in a forum?

 

(1) Every page view to add a record to a db table then search every time user views post (could have millions of records in the "page views" table)

(2) Every page view to UPDATE the topic record (first search and return current page views and then add 1)

(3) number (1) above, but use a CRON job to organise things better behind the scenes (e.g. CRON sorts data and UPDATES the topic record.

(4) Something else.

 

I am not bothered about if you should track every page view / track unique IP etc. just how would be best to do the database side of things.

Do you just want a view count for particular topics??

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.