in reply to MySQL logic
Second, it seesm you're doing this in real-time (i.e., while the request comes in), I'd say that's not necessary in general, you could just run a perl script periodically against your access log, which will make your web site faster.
|
|---|