OneSeventeen
3-28-06, 11:16 AM
I'm pretty sure we have a limit of 72,000 queries per user per database per hour, correct?
I want to make a web site that allows people to sign up and have an account on my page (kind of like myspace, but nothing at all like myspace...) But, I want to limit the number of queries per hour so I don't go near my limit. (If someone wants more queries, they will be directed to a powweb sign up page so they can get their own site :p )
How hard would it be to keep track of the queries for each user, and block their site if it takes up too many resources while allowing the other, less popular accounts to remain up and running?
I'm thinking maybe a SQLITE database to keep track of visitors and just use that instead of queries, or perhaps use the SQLITE database to keep track of individual queries... I'm using a class to handle SQL stuff, so adding a line to increment the value in a database should be a matter of adding the code inside the query method.
Any tips?
I want to make a web site that allows people to sign up and have an account on my page (kind of like myspace, but nothing at all like myspace...) But, I want to limit the number of queries per hour so I don't go near my limit. (If someone wants more queries, they will be directed to a powweb sign up page so they can get their own site :p )
How hard would it be to keep track of the queries for each user, and block their site if it takes up too many resources while allowing the other, less popular accounts to remain up and running?
I'm thinking maybe a SQLITE database to keep track of visitors and just use that instead of queries, or perhaps use the SQLITE database to keep track of individual queries... I'm using a class to handle SQL stuff, so adding a line to increment the value in a database should be a matter of adding the code inside the query method.
Any tips?