View Single Post
Old 03-29-2007, 05:49 PM  
nestle
Confirmed User
 
Industry Role:
Join Date: Apr 2006
Posts: 647
Quote:
Originally Posted by http View Post
One of these days I want to start recording the amount of hits I send to every single sponsor site.

Who's doing this and how? I figure writing it to a mysql table uses a lot of CPU / RAM?
You would need to pass all links through your own script which will "redirect" the user to the other site.

Quote:
Originally Posted by http View Post
If I sent 100K hits a day to 200 sites, would I run 100K mysql update queries on a table with the 200 sites?
Yes, but 100K queries every 24 hours is only 1.157 per second, regardless of how many sites these 100k hits are being sent to. 100k is a big number for people, but very miniscule to a server... unless you're running like a 8086 with 1mb of ram.

Quote:
Originally Posted by http View Post
Won't that tear down my server? Is there a more elegant way to do this, i.e. write to a text file first or whatever?
Using a flat file as a database for this would actually be a step backwards in "elegance".
nestle is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote