473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

DB2 - forcing a table to cache all data in the buffer pool.

Is there a DB2 setting that will force a table to be cached in
the
buffer pool? We have four tables that we want to cache completely
in
the buffer pool to ensure that all the data is read from memory.
The
buffer pool ratio should be close to 100%. It's about 80% at the
moment.

Would a "select all" statement cache everything in the table?
Nov 3 '08 #1
4 5971
Ian
Patrick Finnegan wrote:
Is there a DB2 setting that will force a table to be cached in
the
buffer pool? We have four tables that we want to cache completely
in
the buffer pool to ensure that all the data is read from memory.
The
buffer pool ratio should be close to 100%. It's about 80% at the
moment.

Would a "select all" statement cache everything in the table?
There is no setting for pinning a table into the bufferpool.
I fail to see why you would need to do this -- when you get
into the job of trying to outsmart the DBMS, something is
usually wrong.

Regardless, if your bufferpools are large enough, pinning will
effectively happen. You may need to put each table into
a separate tablespace, and assign each tablespace to its own
unique bufferpool.

Nov 3 '08 #2
Ian wrote:
Patrick Finnegan wrote:
>Is there a DB2 setting that will force a table to be cached in
the
buffer pool? We have four tables that we want to cache completely
in
the buffer pool to ensure that all the data is read from memory.
The
buffer pool ratio should be close to 100%. It's about 80% at the
moment.

Would a "select all" statement cache everything in the table?

There is no setting for pinning a table into the bufferpool.
Well, there is. You describe it below.
put each table into
a separate tablespace, and assign each tablespace to its own
unique bufferpool.
Just make sure the BP size >= tablespace size

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 3 '08 #3
On Nov 3, 9:58*pm, Serge Rielau <srie...@ca.ibm.comwrote:
Ian wrote:
Patrick Finnegan wrote:
Is there a DB2 setting that will force a table to be cached in
the
buffer pool? *We have four tables that we want to cache completely
in
the buffer pool to ensure that all the data is read from memory.
The
buffer pool ratio should be close to 100%. *It's about 80% at the
moment.
Would a "select all" *statement cache everything in the table?
There is no setting for pinning a table into the bufferpool.

Well, there is. You describe it below.put each table into
a separate tablespace, and assign each tablespace to its own
unique bufferpool.

Just make sure the BP size >= tablespace size

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Thanks. I will try that.

Nov 4 '08 #4
The discussion so far was about pinning a table in the bufferpool.
What you describe here is a way to pinning buffer pool in memory.
Two different kinds of page faults.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 4 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hennie de Nooijer | last post by:
Hi, Currently we're a building a metadatadriven datawarehouse in SQL Server 2000. We're investigating the possibility of the updating tables with enormeous number of updates and insert and the...
6
by: Mark | last post by:
I understand the concept of catalog cache (memory allocated from the dbheap to allow catalog lookups without the need to access disk each time). But the DB2 catalog tablespace (SYSCATSPACE) is...
7
by: 2803stan | last post by:
I have a table which saves doctors' notes about patients. The format of the material is rich text format +/- embedded graphic(s) (.bmp, ..gif, .tif, .jpg, etc). The size of a note is...
2
by: Jeremy S. | last post by:
Just wondering if/how a sliding Cache expiration interacts with Application Pool Worker Process Recycling. Specifically, if I were to place some value into the Cache object with a sliding window...
3
by: Sally Sally | last post by:
I have a very basic question on the two parameters shared buffers and effective cache size. I have read articles on what each is about etc. But I still think I don't quite grasp what these settings...
0
by: shakahshakah | last post by:
Just started investigating InnoDB after having used MyISAM tables in the 4.0.12 version, almost immediately ran into a locking issue with INSERTs, DELETEs, and transactions. Given the following...
5
by: sethwai | last post by:
Hi, I've read everything I can get my hands on and am still very confused about the similarities and differences between db2_mmap_read/write and concurrent i/o. It seems to me at this point...
8
by: Edward Diener | last post by:
Is there a way in Javascript, or perhaps in HTML, to force a browser to re-render an image on an HTML page after a round-trip between the client and the server ? In my particular case, the image...
2
by: jarea | last post by:
I have read quite a bit about this error but I have yet to find the solution to my problem. I am trying to execute the following mysql statement: alter table line_items add...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.