REQUEST: Optimize Table SQL Query
It might be beneficial to add an optmize table sql query for zones that go back into sleep mode after someone was in it. I don't know how much of a difference it will make but, I know on my web server, the forums need to be optimized at least once a moth to reduce size and to stop errors. If I don't do it, errors will definatly show up sooner or later.
Comments? Flames? |
Hmmm interesting idea. Shouldn't really be too much of an issue I would think for eqemu as most of the tables are not being modified all the time. So should not be error prone.
Am I wrong? |
Quote:
|
I was thinking along the lines for those servers that have faction working as well as aa etc. The optimize would be for the user accounts and for the characters. When you kill something and get the faction hit or when you add that aa point or loot some plat it all wrties to the database
|
Yes but that only really appllys to like 3 or 4 tables. And it's not doing lots of inserts and deletes that will "fragment" the DB so to speak. Most of those changes will be updates to single records I think.
|
Ok =) was a thought =)
|
Was a good thought. And maybe I'm wrong and it would improve DB performace. I'm don't have alot of expirience tuning MySQL.
|
Quote:
Quote:
|
Just for fun I optimized my tables, launch mysql, use <your db>, and copy and paste this into a file and source it in:
Quote:
|
If you are using windows that MySQL program, MySQL Control Center has a right click context. Right click on tables and select tools and click optimize. You don't have to do it for each table just the unexpanded table list and it will do all of them and show you what the output was. If you use phpmyadmin the function is also there and when you refresh your table after optimization (if it did anything) your table should be reduced in size
|
Is it possible to get database.cpp to run a query that optimizes all mysql tables on startup, which is called in world\net.cpp?
Surely it wouldn't hurt performance, maybe take a few seconds longer to bootup, but once booted it would be fine...? |
MySQL-Front 2.5 does a good job at table diagnostics. personally, every time my server is down i do a complete Check, analyze, and optimization.
|
All times are GMT -4. The time now is 04:30 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.