From: | Oliver Kohll - Mailing Lists <oliver(dot)lists(at)gtwm(dot)co(dot)uk> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Fwd: explain analyse and nested loop joins |
Date: | 2011-11-05 19:24:03 |
Message-ID: | CDD73300-3AD0-4D82-B209-67D401D1762C@gtwm.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Oops, forgot to include the query, it's
SELECT b2deliveryorders.idb2deliveryorders, a2clientpremises.ida2clientpremises, a2clientpremises.premisesname, a2clientpremises.town, b2deliveryorders.expectedby, b2deliveryorders.dateordered, b2deliveryorders.invoicenumber, b2deliveryorders.deliverymethod, b2deliveryorders.driver, dbvcalc_delivery_charges.total, dbvcalc_delivery_charges.boxes, b2deliveryorders.createdbyauto
FROM b2deliveryorders
LEFT JOIN a2clientpremises ON b2deliveryorders.a2clientpremisespremisesname = a2clientpremises.ida2clientpremises
LEFT JOIN dbvcalc_delivery_charges ON b2deliveryorders.idb2deliveryorders = dbvcalc_delivery_charges.idb2deliveryorders
WHERE b2deliveryorders.complete = false AND b2deliveryorders.invoiced = false
ORDER BY b2deliveryorders.expectedby NULLS FIRST;
Oliver
Begin forwarded message:
> From: Oliver Kohll - Mailing Lists <oliver(dot)lists(at)gtwm(dot)co(dot)uk>
> Subject: explain analyse and nested loop joins
> Date: 5 November 2011 19:21:23 GMT
> To: pgsql-general <pgsql-general(at)postgresql(dot)org>
>
> Hi,
>
> I have a query I'm trying to optimise.
From | Date | Subject | |
---|---|---|---|
Next Message | Raymond O'Donnell | 2011-11-05 19:35:34 | Re: What is *wrong* with this query??? |
Previous Message | Tair Sabirgaliev | 2011-11-05 19:21:56 | Re: What is *wrong* with this query??? |