Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 56B969FB3FF for ; Sun, 18 Feb 2007 02:51:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 43087-01 for ; Sun, 18 Feb 2007 02:51:52 -0400 (AST) X-Greylist: delayed 00:38:06.540814 by SQLgrey-1.7.4 Received: from srv03.ezyreg.com (srv03.ezyreg.com [209.85.15.13]) by postgresql.org (Postfix) with ESMTP id 998B49FB3E9 for ; Sun, 18 Feb 2007 02:51:52 -0400 (AST) Received: from c210-49-178-139.mckinn1.vic.optusnet.com.au ([210.49.178.139] helo=ronin) by srv03.ezyreg.com with esmtps (TLSv1:RC4-MD5:128) (Exim 4.63) (envelope-from ) id 1HIfIq-0005xB-EC for pgsql-jdbc@postgresql.org; Sun, 18 Feb 2007 00:13:42 -0600 From: "Mark De Souza" To: Subject: ResultSetMetaData performance Date: Sun, 18 Feb 2007 17:12:37 +1100 Message-ID: <000401c75323$cbe71bb0$5500a8c0@ronin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcdTI8mrVaVjMWLWTh6wp4sb1bvbOw== X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv03.ezyreg.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - openobjects.com.au X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/87 X-Sequence-Number: 16643 Hi all, I'm just wondering when the feature below will be implemented. Its pulled from the todo list on the postgres jdbc website. "ResultSetMetaData calls that run queries are cached on a per column basis, but it seems likely that they're going to be called for all columns, so try to issue one query per ResultSet, not per column." Currently frameworks like sun java creator and netbeans visual web pack make heavy use of the metadata of queries. This usually is not a problem but in the current implementation it means that if your query is returning 30 columns you are actually running 31 queries instead of 2. Suffix it to say that this can bring your queries to a crawl. Thanks in advance, Mark De Souza