Tag: Database
Making MySQL Use More Memory
Unlike a lot of database servers, MySQL is strangely conservative (by default) on how much memory it will allocate. You can have 16GB of RAM on your machine with MySQL only using 50MBs if you’re not careful, leading to extremely poor performance under heavy load. I know first hand that navigating MySQL configuration [...]
Posted: January 7th, 2009 under Database.
Tags: Database, innodb, performance
Comments: none
postgresql explain
I had an opportunity to do some tuning on postgresql and was pleasantly surprised at how smoothly it went.
The first thing I did was try to run an “explain” on the query under discussion. (Explain is a tabular or graphical view of the detailed steps the database uses to execute your query. By knowing what [...]
Posted: December 13th, 2008 under JDBC.
Tags: Database, JDBC, postgresql
Comments: none
Memo: Avoid Nested Queries in MySQL at all costs
Some of my readers may be aware that nested subqueries such as “SELECT * FROM widgets WHERE id IN (SELECT …)”, don’t work all that well in MYSQL. While the syntax is usually correct, the performance issues in practice can be horrendous. This article delves deeper into this issue, and why MySQL performs [...]
Posted: December 10th, 2008 under Database.
Tags: Database, JDBC, mysql, nested, queries
Comments: 2
Denormalized Databases: A better example
There were a number of comments about my recent article on the negative effects of too much database normalization so allow me to expand the topic a little more. The most consistent comment I saw was that while many of you agreed with me in principle that too much normalization can lead to poor [...]
Posted: November 23rd, 2008 under Database.
Tags: Database, denormalization, denormalize, normalization, normalize
Comments: 1
Why too much Database Normalization can be a Bad Thing
As someone with a long history in database optimization and who even did their Master’s project on Database normalization, I’m probably the last person in the world to argue against database normalization. From a theoretical standpoint, database normalization is a wonderful thing, helping to organize your data into easy-to-manage and understandable parts. For [...]
Posted: November 19th, 2008 under Database.
Tags: Database, normalization
Comments: 8
