IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

is there any cache memory for previously ran queries in DB2?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Fri Apr 09, 2010 11:43 am
Reply with quote

Hi,

I searched for this topic in DB2 thread bu i could not find what i wanted...

Is there any cache memory for DB2? i ran a query in QMF which took around 10 seconds to respond for the first time i hit F2. But i got the resulst in 1 or 2 seconds when i ran it for second and further...

i dont understand why it takes such a long time for first time and less for further.... Please advice if any of my understanding is incorrect...

Thanks
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Apr 09, 2010 4:57 pm
Reply with quote

1) Bufferpools :
- data(rows&indexes) is stored on disks (=I/O = long elapsed)
- Data is read into bufferpools (memory)
- least used data gets flushed from bufferpool

2) Dynamic Statement Cache :
- Dynamic SQL (like QMF) has to be prepared before execution (= longer CPU and thus longer elapsed)
- those prepared statements are kept in the Dynamic Statement Cache (=memory)
- least used statement gets flushed

3) same things apply to Database description, Packages, ....
A lot of stuff is kept somewhere in memory

This is only DB2.
I'm not such a hardware guy but a lot of storage devices now have their own cache.
Back to top
View user's profile Send private message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Wed Apr 21, 2010 4:43 pm
Reply with quote

Thanks for the help icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Access an specific memory address exp... COBOL Programming 1
No new posts Foreign character look different in m... COBOL Programming 3
No new posts Index related queries DB2 5
No new posts The TS7720 is out of cache space. All Other Mainframe Topics 2
No new posts Need help with below queries DB2 3
Search our Forums:

Back to Top