From: | Doug McNaught <doug(at)wireboard(dot)com> |
---|---|
To: | Paul Tomblin <ptomblin(at)xcski(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Help me speed things up... |
Date: | 2001-06-12 19:08:38 |
Message-ID: | m33d95qzwp.fsf@belphigor.mcnaught.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Paul Tomblin <ptomblin(at)xcski(dot)com> writes:
> I'm doing some postgres stuff in perl. I haven't done much database stuff
> in many years, and back then I was doing Oracle in C. I'm doing a major
> query that gets a bunch of fields including a key, and then does other
> queries with that key on other tables. Now with Oracle I would have set
> up and compiled a query for the subqueries, and then only substituted in
> the key variable and do the query, and repeat ad-nauseum. (Forgive the
> fact that I've forgotten the terminology) There doesn't seem to be any
> way to do that in Pg.pm, unless I'm missing something, and my subqueries
> are making the whole thing slow as molasses. I think the query I just did
> took about 45 minutes when I did the subqueries, and about 30 seconds
> without.
It's hard to say what might be going on, but I doubt that the
query-compile overhead is hitting you that hard. Care to post a
schema and EXPLAIN output for the queries you're doing??
-Doug (a former Monastery inmate..)
--
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time... --Dylan
From | Date | Subject | |
---|---|---|---|
Next Message | Thalis A. Kalfigopoulos | 2001-06-12 19:11:30 | Re: ideas on optimization |
Previous Message | Sykora, Dale | 2001-06-12 19:08:13 | RE: Exploring sequences (sequence context within a tran saction) |
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Mickol | 2001-06-12 19:24:38 | RE: pg_dumpall anomaly |
Previous Message | Chris Ruprecht | 2001-06-12 18:39:40 | Re: rpt |