July 15, 2010
I had tons of work the last month and got a whole bunch of questions in the queue which I haven’t answered yet.

Pawel, Mark, Kate, Felix, Andrew, Ludwig, Santos, ...
June 30, 2010
Answering questions asked on the site.
Frode Underhill asks:
I have some applications that are logging to a MySQL database table.
The table is pretty standard on the form:
time BIGINT(20)source TINYINT(4)severity ENUMtext VARCHAR(255), where
source...
June 21, 2010
I’m finally back from my vacation. Tunisia’s great: dates, Carthage, sea and stuff.
Now, to the questions.
Mahen asks:
Create a table called
Group:Group id prodname 1 X 1 Y 1 Z 2 A 2 B 2...
May 27, 2010
In one of the previous articles I discussed performance of the three methods to implement an anti-join in MySQL.
Just a quick reminder: an anti-join is an operation that returns all records from one table which share a value of a certain column with no records from another table.
In SQL, there are at least three methods to implement it:
...
May 19, 2010
What is the problem with this query?
SELECT * FROM orders WHERE quantity <= 4 AND urgency <= 4
The problem is indexing strategy, of course. Which columns should we index?If we index
quantity, the optimizer will be able to use the index to filter on it. However, filtering onurgencywill require scanning all records withquantity < 4and applying theurgencyfilter...