Posting stats, again
Posted: Sun Oct 25, 2009 3:15 pm
So Scott asked me to install Antica's AntiStats on Shireroth's forum, and... well... OK, I'll be honest, I'm pretty much just being a scrub here, and I know it wouldn't *really* be a problem, but... I just don't want us to be running a program that displays daily stats by making a database query for each day separately. It adds up to over 3000 queries for Shireroth, you know. For every time someone looks at those stats... and you just know some genius is going to be crawling or reloading them constantly. I know our webhost has pretty beefy servers out there working for our benefit, but just for the sake of being nice to our host, I wanted a more efficient solution.
Long story involving funny things like the Most Static Build In The World and Failing Attempts To Remove Databases That Weren't There In The First Place short, I can compile stats efficiently on my home box but not on shireroth.org. (I could do it on shireroth.org too but that'd require me to write stuff in PHP or somesuch rather than Haskell) So I just hooked the stats generator up with the weekly backups (currently taken at 0:00 Finnish time on Sundays), and the posting statistics files get uploaded automatically about a dozen minutes after that time to:
http://shireroth.org/forum/statsDaily.html
http://shireroth.org/forum/statsMonthly.html
Long story involving funny things like the Most Static Build In The World and Failing Attempts To Remove Databases That Weren't There In The First Place short, I can compile stats efficiently on my home box but not on shireroth.org. (I could do it on shireroth.org too but that'd require me to write stuff in PHP or somesuch rather than Haskell) So I just hooked the stats generator up with the weekly backups (currently taken at 0:00 Finnish time on Sundays), and the posting statistics files get uploaded automatically about a dozen minutes after that time to:
http://shireroth.org/forum/statsDaily.html
http://shireroth.org/forum/statsMonthly.html