|
|
Choosing A Webhost: |
Re: query slow problem: msg#01753db.postgresql.general
On Mon, 29 Jul 2002, frank_lupo wrote: > > > > On Mon, 29 Jul 2002, frank_lupo wrote: > > > > > select id,de2 from irtab where id in (select distinct(ruolofunz) > from > > > irelbtes_1 where entpian=118331)\g > > > > In optimizes poorly currently in postgres, so you're generally better > > off converting to EXISTS or subselect in FROM. Something like > > (untested): > > > > select id, de2 from irtabl where exists (select 1 from > > irelbtes_1 where entpian=118331 and irtabl.id=ruolofunz) > > > > or > > > > select id, de2 from irtabl, (select distinct(ruolofunz) as r from > > irelbtes_1 where entpian=118331) as i > > where i.r=irtabl.id; > My problem is not resolved. What do those give you as explain analyze results? (And the distinct on varient that someone else sent - forgot about that posibility) ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: query slow problem, frank_lupo |
|---|---|
| Next by Date: | Re: tsearch - Regression tests fail, Markus Wollny |
| Previous by Thread: | Re: query slow problem, frank_lupo |
| Next by Thread: | Importing data, Patrick Nelson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |