16.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

112 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

If you have associated any objects <strong>with</strong> this table space, <strong>Data</strong> <strong>Studio</strong> will ask if you want to<br />

drop these impacted objects at the same time. The drop may fail if you choose to not drop<br />

the impacted objects. Unless you want to drop the table space and all of its impacted<br />

objects, you should first alter the impacted objects to disassociate them from the table<br />

space, and then drop the table space.<br />

3.2.2 Creating and managing buffer pools<br />

A buffer pool is the database memory cache that is used to store data and indexes <strong>for</strong><br />

faster access. This memory cache is also where the changes made by an application to a<br />

database object are per<strong>for</strong>med, be<strong>for</strong>e persisting it to the database. <strong>Data</strong> is fetched from<br />

the table spaces to this buffer pool <strong>for</strong> every query be<strong>for</strong>e returning the result to the<br />

application. To fetch data from a table space, a buffer pool <strong>with</strong> the same page size must<br />

exist.<br />

Normally, once the data is fetched into the buffer pool, it remains in the buffer pool until the<br />

buffer pool gets full, in which case the old data is wiped out to make space <strong>for</strong> the new<br />

data. You can greatly improve per<strong>for</strong>mance if you store the data that is required by any<br />

query in the buffer pool, instead of retrieving that data from the disk.<br />

By default, a buffer pool named<strong>IBM</strong>DEFAULTBP is created when you create the database.<br />

This default buffer pool is used <strong>for</strong> all objects unless you explicitly assign the objects to<br />

another buffer pool.<br />

3.2.2.1 Creating a buffer pool<br />

To create a buffer pool:<br />

1. Right-click the Buffer Pools folder and select Create Buffer Pool. The menu is shown in<br />

Figure 3.11.<br />

Figure 3.11 – Creating a new buffer pool

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!