1 Aug 2010 01:24
Re: To PostgreSQL users
>I find PostgreSQL quite hard to tweak to get good performance. A fresh >install is *very* slow, and database server optimization is rather >hard. Me'm disagree. 8.x versions are clever by default & their optimizer is very well, server parameter optimization is mainly needed for migrating from 7.x versions for huge databases. For example, 8.x optimizer automatcally apply hash & merge jonn w/o any special indexing. > Compare that to a fresh install of Firebird 2.x which is fast >without any tweaks. I ran the same test suite (from tiOPF project), >using SqlDB database components (included with FPC). PostgreSQL was >very slow compared to Firebird - doing the exact same tests. I really >like the features of PostgreSQL, and the admin tools are very good, I >just don't know how to get good performance out of it.(Continue reading)Any tips >or good websites I can look at? > With a pleasue :) Assume that the main goal of optimization is to exclude any "bottle necks". The main of them is disk i/o which is thousands times as slower than CPU & memory. To minimize disk i/o, we can: 1) use minimal set of nececssary indexes - they allow to locate then to load much smaller parts of huge DB files, but be aware not to index data spread evenly through index files (these file may grow very rapidly ) - low enthropy data like operator codes, office codes, payment types - since such inedexes may envolve full loading index files ( the worst case is to retrieve index value from very begginning
Any tips
>or good websites I can look at?
>
With a pleasue :) Assume that the main goal of optimization is to
exclude any "bottle necks". The main of them is disk i/o which is
thousands times as slower than CPU & memory.
To minimize disk i/o, we can:
1) use minimal set of nececssary indexes - they allow to locate then
to load much smaller parts of huge DB files, but be aware not to
index data spread evenly through index files (these file may grow very
rapidly ) - low enthropy data like operator codes, office codes,
payment types - since such inedexes may envolve full loading index
files ( the worst case is to retrieve index value from very begginning
RSS Feed