X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A56F653495 for ; Tue, 5 Apr 2005 14:25:58 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39486-01 for ; Tue, 5 Apr 2005 13:25:58 +0000 (GMT) Received: from n22a.bulk.scd.yahoo.com (n22a.bulk.scd.yahoo.com [66.94.237.51]) by svr1.postgresql.org (Postfix) with SMTP id E6B8653498 for ; Tue, 5 Apr 2005 14:25:57 +0100 (BST) Received: from [66.218.69.2] by n22.bulk.scd.yahoo.com with NNFMP; 05 Apr 2005 13:26:01 -0000 Received: from [66.218.66.30] by mailer2.bulk.scd.yahoo.com with NNFMP; 05 Apr 2005 13:26:01 -0000 X-Yahoo-Newman-Property: groups-email Received: (qmail 60116 invoked from network); 5 Apr 2005 13:25:59 -0000 Received: from unknown (66.218.66.167) by m24.grp.scd.yahoo.com with QMQP; 5 Apr 2005 13:25:59 -0000 Received: from unknown (HELO n20a.bulk.scd.yahoo.com) (66.94.237.49) by mta6.grp.scd.yahoo.com with SMTP; 5 Apr 2005 13:25:59 -0000 DomainKey-Signature: Received: from [66.218.66.58] by n20.bulk.scd.yahoo.com with NNFMP; 05 Apr 2005 13:25:04 -0000 Received: from [66.218.66.71] by mailer7.bulk.scd.yahoo.com with NNFMP; 05 Apr 2005 13:25:04 -0000 X-Sender: karthikd@hexaware.com X-Apparently-To: ocpfree@yahoogroups.com Received: (qmail 78421 invoked from network); 5 Apr 2005 13:22:55 -0000 Received: from unknown (66.218.66.172) by m1.grp.scd.yahoo.com with QMQP; 5 Apr 2005 13:22:55 -0000 Received: from unknown (HELO mail3.hexaware.com) (202.54.128.50) by mta4.grp.scd.yahoo.com with SMTP; 5 Apr 2005 13:22:54 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message Message-ID: <372DD7320F873B43929D49BFF86F950B0EA4C3F3@mail3.hexaware.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem finding the time difference while tuning a query Thread-Index: AcU54mtI7gaSVTRMSqOcxbzogzDFuQ== X-Originating-IP: 202.54.128.50 X-eGroups-Msg-Info: 1:12:0 From: "Karthik Dakshinamoorthy" X-Yahoo-Profile: kart_d X-eGroups-Approved-By: sarandba via web; 05 Apr 2005 13:25:03 -0000 MIME-Version: 1.0 Mailing-List: list ocpfree@yahoogroups.com; contact ocpfree-owner@yahoogroups.com Precedence: bulk Date: Tue, 5 Apr 2005 18:47:53 +0530 Subject: [ocpfree] Problem finding the time difference while tuning a query Reply-To: ocpfree@yahoogroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: undisclosed-recipients: ; X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200504/147 X-Sequence-Number: 21040 Dear all, Of late, I have been involved in tuning the Performance for a particular program with my project. 1) When you execute a particular query, say if it takes, 1 mins, the second run will always take less time, like 10 msecs etc, the reason is that the second run, benefits from the parsing done on the first run of the query. One way to overcome, this is to use "alter system flush shared_pool" which is normally "supposed" to clear the parsing in shared_pool, but that's where my problem is, it sometimes does and most times doesn't, so I can't really say, how mush I have tuned or is it tuned at all. Any solutions ??????? 2) The entire program must have only one commit, 'cos of that it takes a longtime, 'cos of the huge amts of information's that need to be maintained in the rollback segments. Pragma autonomous_transaction commits Or backup tables are not an option. Any methods, to enhance the speed to the program with rollback segment Or methods to ease the load on the rollback segments???? Cheers Kart ------------------------------------------------------------------------------------------------------------------------------------ Lot of failures in life are those who didn't realise how close they were to success when they gave up !! Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/ocpfree/ <*> To unsubscribe from this group, send an email to: ocpfree-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/