pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedOptimizing queries
3+ messages / 3 participants
[nested] [flat]
* Optimizing queries
@ 2002-06-19 18:44 Work <sbhatt@installs.com>
0 siblings, 2 replies; 3+ messages in thread
From: Work @ 2002-06-19 18:44 UTC (permalink / raw)
To: pgsql-general@postgresql.org; pgsql-php
Hi ,
I am a newbie to the world of Postgres, I am currently optimizing
PHP/Postgres applications. My problem is that I have a query that throws
certain rowsets and depending on these values I loop other tables to get the
desired columns. I am using a heavy for-loop for this purpose, within the
for-loop I have further sub-queries, so that for every loop iteration I
execute these sub-queries, I dont see a way to reorganize this structure.
Can somebody suggest a better way.
Thanks
Regards
Sid
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Optimizing queries
@ 2002-06-20 07:08 Manfred Koizar <mkoi-pg@aon.at>
parent: Work <sbhatt@installs.com>
1 sibling, 0 replies; 3+ messages in thread
From: Manfred Koizar @ 2002-06-20 07:08 UTC (permalink / raw)
To: pgsql-general@postgresql.org
On Wed, 19 Jun 2002 14:44:33 -0400, "Work" <sbhatt@installs.com>
wrote:
>Hi ,
>
>I am a newbie to the world of Postgres, [...]
>I dont see a way to reorganize this structure.
Sid,
me too! I mean, I don't see a way either. Show us some code ...
Servus
Manfred
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Optimizing queries
@ 2002-06-21 20:28 Scott Marlowe <scott.marlowe@ihs.com>
parent: Work <sbhatt@installs.com>
1 sibling, 0 replies; 3+ messages in thread
From: Scott Marlowe @ 2002-06-21 20:28 UTC (permalink / raw)
To: Work <sbhatt@installs.com>; +Cc: pgsql-general@postgresql.org; pgsql-php
Are you sure you can't use inner / outer joins or unions to make this one
big query?
If you'll post a bit of your php code and your table design, we might be
able to make some suggestions.
On Wed, 19 Jun 2002, Work wrote:
> Hi ,
>
> I am a newbie to the world of Postgres, I am currently optimizing
> PHP/Postgres applications. My problem is that I have a query that throws
> certain rowsets and depending on these values I loop other tables to get the
> desired columns. I am using a heavy for-loop for this purpose, within the
> for-loop I have further sub-queries, so that for every loop iteration I
> execute these sub-queries, I dont see a way to reorganize this structure.
> Can somebody suggest a better way.
>
> Thanks
> Regards
> Sid
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
"Force has no place where there is need of skill.", "Haste in every
business brings failures.", "This is the bitterest pain among men, to have
much knowledge but no power." -- Herodotus
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-06-21 20:28 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-06-19 18:44 Optimizing queries Work <sbhatt@installs.com>
2002-06-20 07:08 ` Manfred Koizar <mkoi-pg@aon.at>
2002-06-21 20:28 ` Scott Marlowe <scott.marlowe@ihs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox