Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To define the table in DB2 cache or memory

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: To define the table in DB2 cache or memory
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: 1439
Location: Bangalore,India

PostPosted: Fri Nov 09, 2007 12:54 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Nov 09, 2007 3:30 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Nov 09, 2007 4:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us