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

How to load a table to bufferpool when system start?


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

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Thu Mar 22, 2012 9:03 am
Reply with quote

to decrease the time application spends on DB2 connection, I want to load a table to bufferpool at the point when system start, so that data fetch processing can become more faster for application.

Can I achieve this? and how?

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 22, 2012 10:53 am
Reply with quote

Hello,

So run a process that reads the table. . .

Realizing that this will probably not accomplish what you want.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Thu Mar 22, 2012 3:15 pm
Reply with quote

hi, dick,
thanks for your recommendation.

but can you tell me why " this will probably not accomplish what you want." ?

thanks.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Mar 22, 2012 6:12 pm
Reply with quote

the why can be found in the db2 manuals where it talks about buffer pool

POOL is the buzzword, the thing is not something dedicated to a single table,
is a dynamic container for all the tables/databases with the same buffer size
where the LRU buffers are flushed to satisfy new requests
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 23, 2012 6:17 am
Reply with quote

Hello,

Also, when the table is read the first time by some query, it will be loaded into the "bufferpool". No "special" load is needed.

If there are no requests that cause the pool to be flushed, the info will still be "in core". As Enrico mentoned, new requests can cause the oldest in-core "stuff" to be flushed - which is how a database system should work.

If the table in queston is "hit" by most transactons, much of the data will remain in core. If this is seldom used, it will be flushed with regularity.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Fri Mar 23, 2012 8:39 am
Reply with quote

okay ,I got it.

as the table is most frequently used, I suppose it will not be paged out provided there is large enough pool size.
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 Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts How to load to DB2 with column level ... DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top