|
|
Sponsor |
Re: performance problems with subselects: msg#00170db.postgresql.novice
John Taylor <postgres@xxxxxxxxxxxxxxxx> writes: > I am aware that I am using almost the same select from orderheader 3 > times, but I'm not sure how I can improve on this. Can you do this? INSERT INTO target SELECT foo, bar, baz FROM source WHERE condition To the extent that you are computing multiple fields from the same row in the source table, this will help. Also, avoid that IN construct. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | performance problems with subselects, John Taylor |
|---|---|
| Next by Date: | Re: performance problems with subselects, John Taylor |
| Previous by Thread: | performance problems with subselects, John Taylor |
| Next by Thread: | Re: performance problems with subselects, John Taylor |
| 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|