X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 53F60D1B4F0 for ; Tue, 12 Aug 2003 16:42:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 80920-06 for ; Tue, 12 Aug 2003 13:40:49 -0300 (ADT) Received: from irko.smoothcorp.com (unknown [208.49.241.41]) by svr1.postgresql.org (Postfix) with ESMTP id 066C5D1C4D0 for ; Tue, 12 Aug 2003 13:42:12 -0300 (ADT) Received: from [10.0.1.63] (helo=jgardner.smoothcorp.com) by irko.smoothcorp.com with esmtp (Exim 4.12) id 19mcDq-0002w8-00; Tue, 12 Aug 2003 09:42:10 -0700 Received: from jgardner.smoothcorp.com (localhost.localdomain [127.0.0.1]) by jgardner.smoothcorp.com (8.12.8/8.12.8) with ESMTP id h7CGgBsN022180; Tue, 12 Aug 2003 09:42:11 -0700 Received: from localhost (localhost [[UNIX: localhost]]) by jgardner.smoothcorp.com (8.12.8/8.12.8/Submit) id h7CGgAGN022178; Tue, 12 Aug 2003 09:42:10 -0700 From: Jonathan Gardner To: proghome@silesky.com (krystoffff), pgsql-sql@postgresql.org Subject: Re: optimisation of a code Date: Tue, 12 Aug 2003 09:42:08 -0700 User-Agent: KMail/1.5 References: <85898f7e.0308111419.2d770a9a@posting.google.com> In-Reply-To: <85898f7e.0308111419.2d770a9a@posting.google.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200308120942.10603.jgardner@jonathangardner.net> X-SA-Exim-Rcpt-To: proghome@silesky.com, pgsql-sql@postgresql.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/117 X-Sequence-Number: 14733 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 11 August 2003 15:19, krystoffff wrote: > Hi all > > I wrote a script in PHP with mysql (hum ... to be honnest, I wrote > this script under PostGreSQL but we recently migrated to mysql, so I > had to adapt my code to mysql ... sorry about that ... anyway, it is > the same kind of query, with subqueries !) but this is a very very > long script ... > > I was wondering if there is a way to optimize this one, by doing some > JOIN (because the subqueries don't seem to be very powerful ...) > Take this to the postgresql-performance list. They love taking things=20 apart and getting it running faster. They'll want: - - The tables - - The indexes - - The queries - - The results of EXPLAIN and EXPLAIN ANALYZE on the queries - - What you have already tried and what seems to work and what doesn't. - --=20 Jonathan Gardner Live Free, Use Linux! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/ORjgWgwF3QvpWNwRAszNAKDuIybxFQuXa9IwrqW0UQf+Iqyb9gCgxqaK s/MPbNjorsXVMutSAiVEAk4=3D =3DtiHM -----END PGP SIGNATURE-----