473,769 Members | 7,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6024
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
5769
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 use of checkpoints (for simple recovery and Backup Log for full recovery). On several website people speak about full transaction log and the pace of growing can't keep up with the update. Therefore we want to create a script which flushes the...
6
3989
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 assigned a buffer pool, which seems to perform the same function as catalog cache. Is this simply a case of double buffering? Can anyone clear this up?
7
2213
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 unpredictable: maybe 4k, maybe 100k. Majority under 32k. Figure five under 32k for one over. At this moment all rows saved as BLOBs. Would I be better off to redo this as two tables: one for VARCHAR(32K)
2
2323
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 of 2 hours, but property setting for the relevant App Pool is 1 hour (and there is no activity following the placement of the data into the Cache), then WILL the data automatically be removed from the Cache when the App Pool recycles? Or, is it...
3
5885
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 mean (especially in relation to each other). Since these two settings seem crucial for performance can somebody explain to me the relationship/difference between these two settings and how they deal with shared memory. Thanks much Sally ...
0
2306
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 table: CREATE TABLE test1 ( f1 varchar(32) default NULL ) and a steady stream of INSERTs from a command-line shell:
5
4483
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 that they are virtually identical except that db2_mmap_read/write applies at an instance level and concurrent i/o can be aplied at a tablespace level. It seems that they both bypass the AIX file cache and eliminate i-node locking. Is this correct?
8
4059
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 is changing on the server although the URL for it remains the same, but the browser is still displaying the old image from its cache rather than the new image from its URL location.
2
43961
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 constraint fk_line_item_products foreign key (product_id) references products(id) I have also tried the following statement with the same result:
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10048
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.