Query Optimization
The Top 20 Design Tips for Enterprise Data Architects
- Add new comment
- play
- download
- 49 min 38 sec
- 186.35 MB
- 266 plays
- 245 downloads
Video: Addressing Challenges of Data Warehousing - a Panel Discussion
- Add new comment
- play
- download
- 40 min 31 sec
- 284.62 MB
- 276 plays
- 181 downloads
Video: Optimizing MySQL and InnoDB on Solaris 10 for World's Largest Photo Blogging Community
- Add new comment
- play
- download
- 50 min 8 sec
- 187.78 MB
- 342 plays
- 221 downloads
Video: The MySQL Query Cache
- Add new comment
- play
- download
- 47 min 22 sec
- 208.53 MB
- 243 plays
- 174 downloads
MySQL Proxy Presentation at the September 2007 Boston MySQL User Group
Official Documentation for MySQL Proxy
Proxy information on the MySQL Forge Wiki, including getting started guide, link to FAQ, forums, and lots more articles.
MySQL Proxy Download
Articles about MySQL Proxy written by Giuseppe Maxia Giuseppe Maxia will be leading Introducing Lua for MySQL Proxy scripting for the [free] MySQL University on Thursday, December 13th at 16:00 CET (15:00 URC, 10:00 EDT, 07:00 PST). Make sure to sign up and read Instructions for Attendees. (From his blog, "MySQL University is a series of online expert lessons that you can join for free and attend from the comfort of your home or office. The slides are provided in either PDF of wiki pages, the audio is an ogg stream, and you can interact with the lecturer via IRC. If you have heard of MySQL Proxy but haven't got the time of getting involved with it yet, this session is for you. If you were interested but you thought that another scripting langiage would be too difficult, give this session a chance.") Note: the wishlist at the end includes startup scripts and integraton with my.cnf, my.cnf, which I am informed will be possible with the chassis currently under development for version 0.70.
Picking Up Where You Left Off……
I started this as a response to Keith Murphy’s post at http://www.paragon-cs.com/wordpress/?p=54, but it got long, so it deserves its own post. The basic context is figuring out how not to cause duplicate information if a large INSERT statement fails before finishing.
Firstly, the surefire way to make sure there are no duplicates if you have a unique (or primary) key is to use INSERT IGNORE INTO.
Secondly, I just experimented with adding an index to an InnoDB table that had 1 million rows, and here’s what I got (please note, this is one experience only, the plural of “anecdote” is *not* “data”; also I did this in this particular order, so there may have been caching taking place):
Top 10 MySQL Best Practices
So, O’Reilly’s ONLamp.com has published the “Top 10 MySQL Best Practices” at http://www.onlamp.com/pub/a/onlamp/2002/07/11/MySQLtips.html. Sadly, I find most “best practice” list do not thoroughly explain the “why” enough so that people can make their own decisions.
For instance, #3 is “Protect the MySQL installation directory from access by other users.” I was intrigued at what they would consider the “installation” directory. By reading the tip, they actually mean the data directory. They say nothing of the log directory, nor that innodb data files may be in different places than the standard myisam data directories.
Making Queries 45-90 Times Faster!!
aka…..”when good queries go bad!”
So, today the developers were debugging why a script was running much longer than expected. They were doing text database inserts, and got to the point where they realized that double the amount of text meant the queries took double the amount of time.
You see, they were doing similar text inserts over and over, instead of using connection pooling and/or batching them. Apparently the other DBA explained that it was a limitation of MySQL, but either the developers didn’t convey what they were doing well, or the DBA didn’t think to mention batching.
