AllExperts > Ingres 
Search      
Ingres
Volunteer
Answers to thousands of questions
 Home · More Ingres Questions · Answer Library  · Encyclopedia ·
More Ingres Answers
Question Library

Ask a question about Ingres
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Jean-Pierre Zuate
Expertise
Any questions about database Ingres (owned by Computer Associates then Ingres Corp) : - Ingres 6.4 - OpenINGRES from 1.0 to 2.0 - IngresII from 2.0 to 2.6 - Ingres R3, Ingres 2006 (Open Source version) - All tool around Ingres : ABF, Report Writer, Replicator, OpenROAD (3.5 to 2006), Ingres/NET Ingres/STAR, ...

Experience
16 years of computing experience as :
- AS400 programmer
- AIX / Ingres administrator and developer (OpenROAD and korn shell)
- Ingres DataBase Administrator
- Ingres expert - Data modelisation - ETL - Reporting - Many of Computer Associates sofwares - ITIL / CMDB / Change Management

Organizations
http://lafageconseil.fr

 
   

You are here:  Experts > Computing/Technology > Databases > Ingres > repetead select

Ingres - repetead select


Expert: Jean-Pierre Zuate - 9/28/2005

Question
to improve the performances of applications, i use 'repeated select' in my programs.
when the application runs, the define query is done more than one time for the same query. it should be done one time only.
do you know why ?  

Answer
Hello,

First, sorry to answer a little in late ...

"repeated select" only tell to the dbms to store the QEP in it's memory. So when the query is defined the second time, DBMS do not have to recalculate it. It was true only and only if the same query is running (do not hope the "repeated" run along the same table thru differents query's (ie differents where clause).

In the past with an other DBA whe made a loop program (Embeded/C) to "mesure" performance of our information system. The loop consist to a "repeated select" on the main and bigget table with a blank key (to ensure each time the DBMS scan all the table) and then output the elaps time of the query. The first run take seconds (2 ou 3), and the others less than one.

Hope this is clear (i'am french so my english could be sometimes a little poor :-) and help you,
Jean-Pierre ZUATE

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.