[ocpfree] Problem finding the time difference while tuning a query

From: "Karthik Dakshinamoorthy" <karthikd(at)hexaware(dot)com>
To: undisclosed-recipients: ;
Subject: [ocpfree] Problem finding the time difference while tuning a query
Date: 2005-04-05 13:17:53
Message-ID: 372DD7320F873B43929D49BFF86F950B0EA4C3F3@mail3.hexaware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)yahoogroups(dot)com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Browse pgsql-sql by date

  From Date Subject
Next Message Mauro Bertoli 2005-04-05 15:29:07 Re: Query history file
Previous Message Gary Stainburn 2005-04-05 09:44:31 Re: Speed up slow select - was gone blind