I’ve tried Aaron’s suggestion of the GROUP BY and I don’t know much about it, but it ran for around 17 hours and still going (it had a dedicated Dual Xeon 3.0GHz box under RHEL4 running it!)
I’ll give Richard’s suggestion a try and see if that comes up any better. Like I said yesterday, this might just be too much for Postgres and I’ll need to summarize it in the export from our live system and add a new column before I import it to the sales_orders table
Cheers, -p
-----Original
Message-----
I am
not familiar enough with how postgres optimizes the queries but won't this end
up with On 6/29/06, Richard Broersma Jr <[EMAIL PROTECTED]> wrote: >
SELECT trans_no, *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
|
- Re: [SQL] SELECT Aggregate Phillip Smith
- Re: [SQL] SELECT Aggregate Richard Broersma Jr
- Re: [SQL] SELECT Aggregate Phillip Smith
- Re: [SQL] SELECT Aggregate Richard Broersma Jr