2005-03-08 23:35

by Vasil Kolev

Today I spent the day at the ex-workplace, as a consultant – they have a 5GB postgresql database, and needed some optimizations, not to overload the machine. The iron itself isn’t something great, a dual machine with 1G ram, and works pretty well under the load (about 30 queries per second). The problem was solved easily – I pulled all the slow queries from the log, sorted then by time of execution, and with some EXPLAINs, indexes and thinking the heaviest things were fixed, tomorrow I’ll repeat the procedure with everything else that pops out. Mostly an exercise in query optimization, he database itself had nothing to tune, worked like charm :)
(I can’t deny it, I love postgresql :) )

In the evening I got out for a walk with Lora and Fozzie (e.g. we looked for a while for a place to sit, in the end ate at “Trops”, and sat in a really nice nearby coffee shop). I gave Lora “No logo”, let’s see what will be her opinion on the book.

Leave a Reply