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

To define the table in DB2 cache or memory


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

New User


Joined: 27 Jul 2007
Posts: 6
Location: Israel

PostPosted: Fri Nov 09, 2007 11:16 am
Reply with quote

Hi,

My question is DBA oriented icon_smile.gif

I have a small table ~ 500 rows, each row 100 bytes.

All the accesses to this table in on-line operations are for read and not for update or insert.

But we have really many accesses to this table, about million every day.

Is it possible for DBA to define the table in DB2 cache or memory, in order to cause selects not going to the disk, but to go to the memory?

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

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 09, 2007 12:54 pm
Reply with quote

Yacov,

Quote:
DBA to define the table in DB2 cache or memory, in order to cause selects not going to the disk, but to go to the memory?

Its not possible.

PS: Assuming Im wrong (i.e., define table in memory is allowed), during IPL this table should be re-created everytime.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 09, 2007 3:30 pm
Reply with quote

Yacov,

Addition to my prev post -

If I remember correctly, upon successfull record retervial ..... PAGE (where record is present) will be loaded into memory along with record. Depending on the memory/buffer size, this page remain there for sometime.

Since you have less number of rows and more hits..... there is a possibility that your table remains in buffer.
Back to top
View user's profile Send private message
yacov

New User


Joined: 27 Jul 2007
Posts: 6
Location: Israel

PostPosted: Fri Nov 09, 2007 4:01 pm
Reply with quote

murmohk1,

So, do I have some way (on DB2 level) that can speed up record retrivals?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 09, 2007 4:04 pm
Reply with quote

Yacov,

Quote:
do I have some way (on DB2 level) that can speed up record retrivals?

Speak with your local DBA.
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top