simultaneously reducing both memory usage and runtime for a query

From: Faheem Mitha <faheem(at)email(dot)unc(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: simultaneously reducing both memory usage and runtime for a query
Date: 2010-03-28 06:08:45
Message-ID: alpine.DEB.2.00.1003281003500.13883@orwell.homelinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi everyone,

I've been trying to reduce both memory usage and runtime for a query. An
issue I have encountered is that I can drastically reduce both runtime and
memory usage by splitting up the query into two pieces and gluing them
together outside PostgreSQL. However, I'm unable to get similar results
inside PostgreSQL. I have tried different variations of the same query,
but either the memory or the runtime blows up. I wonder if I'm missing
something. In any case, feedback would be helpful. Details of my attempts
at optimization are at

http://bulldog.duhs.duke.edu/~faheem/snppy/opt.pdf

See particularly Section 1 - Background and Discussion.

If you want a text version, see

http://bulldog.duhs.duke.edu/~faheem/snppy/opt.tex

For background see

http://bulldog.duhs.duke.edu/~faheem/snppy/diag.pdf (text version
http://bulldog.duhs.duke.edu/~faheem/snppy/diag.tex) and
http://bulldog.duhs.duke.edu/~faheem/snppy/snppy.pdf

Please CC any replies to me at the above email address. Thanks.

Regards, Faheem.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tadipathri Raghu 2010-03-28 07:14:41 Re: How many Mandatory Process are there in Postgres
Previous Message Frans Hals 2010-03-27 20:27:32 Re: Large index operation crashes postgres