Skip site navigation (1) Skip section navigation (2)

Re: postgresql and openmosix migration

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Bill" <bill(at)math(dot)uchicago(dot)edu>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: postgresql and openmosix migration
Date: 2004-06-23 16:34:42
Message-ID: 6EE64EF3AB31D5448D0007DD34EEB34101AE73@Herge.rcsinc.local (view raw or flat)
Thread:
Lists: pgsql-performance
Bill wrote:
> Ok, so maybe someone on this group will have a better idea.  We have a
> database of financial information, and this has literally millions of
> entries.  I have installed indicies, but for the rather
computationally
> demanding processes we like to use, like a select query to find the
> commodity with the highest monthly or annual returns, the computer
> generally
> runs unacceptably slow.  So, other than clustring, how could I achieve
a
> speed increase in these complex queries?  Is this better in mysql or
> postgresql?

This is a very broad question.  Optimizing your SQL to run fast as on
any other database is something of an art form.  This is a very broad
topic that could fill a book.  For example, a common performance killer
is not having enough sort memory for large ordered result sets.

A critical skill is being able to figure out if the planner is
optimizing your queries badly.  Knowing this is a mixture of observation
and intuition that comes with experience.  The absolute best case
performance of a query is roughly defined by the data that is looked at
to generate the result set and the size of the result set itself when
the query is pulling data from the cache.  The cache problem is
compromisable by throwing more money at the problem but a poorly planned
query will run slowly on any hardware.

I would suggest isolating particular problems and posting them to the
list. (explain analyze works wonders).

Merlin

pgsql-performance by date

Next:From: Josh BerkusDate: 2004-06-23 17:31:45
Subject: Re: postgresql and openmosix migration
Previous:From: Laurent MartelliDate: 2004-06-23 16:02:23
Subject: Re: Traduc Party

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group