tuneup_guide
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tuneup_guide [2009/03/07 23:14] – created k2patel | tuneup_guide [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| You need to run following command first. | You need to run following command first. | ||
| - | < | + | < |
| mysqlcheck -u root --auto-repair --check --optimize --all-databases -p | mysqlcheck -u root --auto-repair --check --optimize --all-databases -p | ||
| </ | </ | ||
| Line 17: | Line 17: | ||
| <code bash> | <code bash> | ||
| - | wget http://www.day32.com/MySQL/ | + | wget http://bazaar.launchpad.net/%7Ematt-day32/ |
| </ | </ | ||
| Line 34: | Line 34: | ||
| why it is important, because more ram usage will cause swap during the request on server.\\ | why it is important, because more ram usage will cause swap during the request on server.\\ | ||
| when server start using swap it will make server d** slow. | when server start using swap it will make server d** slow. | ||
| + | |||
| + | ==== Create Indexes for query if it not exists on busy table ==== | ||
| + | |||
| + | Creating index will help you on sorting and searches which reduce time highly.\\ | ||
| + | you can specify many parameter in index like - DESC ... etc. | ||
| + | |||
| + | <code sql> | ||
| + | CREATE INDEX id_google ON google_searches(hits DESC); | ||
| + | </ | ||
| + | |||
| + | i have seen get load reduced on whole server in 2.x after applying just index. | ||
| + | |||
| + | ==== Install memcached if your Application support memcache ==== | ||
| + | |||
| + | Installing memcached help on some similar query to the mysql and reduce load. | ||
tuneup_guide.1236467649.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
