Nate Weiner

  • Archive
  • RSS

Quick Way to Help Optimize Mysql Databases

The Analyse procedure built into MySql can give you a wealth of information about your database tables, making it easy to find tables that can be tightened up. If you query:

SELECT * FROM table_name PROCEDURE ANALYSE()
You’ll get a result back with the minimum/maximum value, minimum/maximum length, number of empty or zero strings, number of nulls, the average value/length, the standard deviation, and a suggested optimal fieldtype for every row in the table. Should be noted this isn’t very helpful unless you have active tables with a fair amount of data in them already.
    • #mysql
    • #optimization
  • 3 years ago
  • 15
  • Permalink
  • Share
    Tweet

15 Notes/ Hide

  1. season303 liked this
  2. determinesek6 liked this
  3. apartmentrt6 liked this
  4. quantifiers03 liked this
  5. dictionaryfr26 liked this
  6. login93026 liked this
  7. techniques22hk liked this
  8. castellanosko9 liked this
  9. mildredbod8 liked this
  10. valenzuelaki09 liked this
  11. yeseniauio09 liked this
  12. kathleentag901 liked this
  13. nateweiner posted this
← Previous • Next →

About

Prototyper, water waster, developer of Pocket.

 

Follow

Twitter: @NateWeiner
Vimeo: Nate Weiner
500px: Nate Weiner
Blog: RSS

Pages

  • Contact
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr