shavenlunatic
MIS
Hi,
Developing a web game and looking to optimise the MySQL back end, fairly new to databases and I KNOW there are things I could be doing to optimize it.
The game pretty much constantly hits the database, the queries are great, filtering out what isn't needed and only returning the exact information required.
Some of the tables are hit for information pretty much constantly (hundred queries a second) and are contantly updated. (game uses ajax and fires 5 queries, per player, every 3 seconds, not including manual events)
My main question is:
There are a couple of these rapidly updated tables which don't have indexes, is it worth while adding an index to these to increase performance? There isn't currently a unique field which could be indexed on, so I would be purely creating a field for index purposes
And my sub-question is:
Are there any other optimisation tips you have for a database being used for these purposes?
Thanks
________
clueless
Developing a web game and looking to optimise the MySQL back end, fairly new to databases and I KNOW there are things I could be doing to optimize it.
The game pretty much constantly hits the database, the queries are great, filtering out what isn't needed and only returning the exact information required.
Some of the tables are hit for information pretty much constantly (hundred queries a second) and are contantly updated. (game uses ajax and fires 5 queries, per player, every 3 seconds, not including manual events)
My main question is:
There are a couple of these rapidly updated tables which don't have indexes, is it worth while adding an index to these to increase performance? There isn't currently a unique field which could be indexed on, so I would be purely creating a field for index purposes
And my sub-question is:
Are there any other optimisation tips you have for a database being used for these purposes?
Thanks
________
clueless