Archive for '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
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
5 Tips to be a Good JDBC Programmer
Have you written Java code for your database connections in JDBC that ends up being thrown away? Would using a new database software easily kill your product and set you back months at a time to port? Well, if so, keep reading as the goal of this article is to make you a [...]
Posted: September 29th, 2008 under Database, J2EE, JDBC.
Tags: Database, good, JDBC, programmer
Comments: 10
