473,398 Members | 2,212 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,398 software developers and data experts.

db2 load performance

Hi,

Please explain TOTALFREESPACE=x, INDEXFREESPACE=x, PAGEFREESPACE=x options in load. How these options help in gaining performance.

Appreciate if you could provide some examples also.

Thanks,
Rejeev.
Sep 13 '06 #1
1 2911
Hi,

Please explain TOTALFREESPACE=x, INDEXFREESPACE=x, PAGEFREESPACE=x options in load. How these options help in gaining performance.

Appreciate if you could provide some examples also.

Thanks,
Rejeev.

Hi
well, the parameters you ask about are :
TOTALFREESPACE: the value must be in the range of 0 to 100, and is interpreted as a percentage of the total pages in the table that are to be appended to the end of the table as free space.
PAGEFREESPACE: the value must be in the range of 0 to 100, and is interpreted as a percentage of each data page that is to be left as free space.
INDEXFREESPACE: the value must be in the range of 0 to 99, and is interpreted as a percentage of each index page that is to be left as free space when loading indexes.

so what are these values good for ? that depends on the way your table is being accessed.
there are 3 types of operations that change the physical layout of data :
1) delete - remove a record so space becomes available
2) insert - add a new record
3) update - updates existing record, if the record is varying length (has any varchar column) than the record might become larger, and no longer fit where it used to be. when this happens , db2 finds a new place for the record, and the old place points to the new place, so if the new place is on a different page, we get 2 io operations each time we access this record (called overflow record)

so what these parameters do is telling db2 how much freespace to reserve in each page (last 2), and how many empty pages to reserve for the entire table.
free space and free pages are good for insert and update operations for :
1) allowing db2 to maintain clustering order
2) avoid overflow records as possible

so, if you have a read only table, you can set all of the above as 0,
if you have a table that you only insert data in asc order (such as a log table) you can set all of the above to 0 as well,
for all other cases you should consider how much work is done with this table and find the right balance for these parameters (remember - if you set them too high you are waisting space in the tablespace and in the bufferpool)

i hope it's clearer now

Momi
Sep 14 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John A Grandy | last post by:
I've got an app that has hundreds of medium-sized (100s of elements) XML files on disk (not in db). Right now these are loaded via XMLDocument.Load and searched with XPATH. The performance has...
3
by: Arti Potnis | last post by:
Hi, I am trying to execute the DB2 load utility from a C program. lPid = fork(); execl(csExePath, csExeName,csCmd, NULL); the contents of the parameter variables are as follows:-
2
by: Curtis Justus | last post by:
Hi, I've been searching for solutions to two issues that are undoubtedly common to everybody. The first is how do my team and I adequately perform unit testing. The second is how can I measure...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
7
by: P. Adhia | last post by:
Sorry for quoting an old post and probably I am reading out of context so my concern is unfounded. But I would appreciate if I can get someone or Serge to confirm. Also unlike the question asked in...
5
by: mike_dba | last post by:
I am looking for comments on experience using a Load from Cursor across multiple db's databases. I have a multi-terrabyte database across many partitions that includes a large table (1 Tb+). The...
9
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App...
39
by: Gilles Ganault | last post by:
Hello, I'm no LAMP expert, and a friend of mine is running a site which is a bit overloaded. Before upgrading, he'd like to make sure there's no easy way to improve efficiency. A couple of...
5
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Hi, I know that VS 2005 has a lot of testing features and already used them for doing web load testing. I am wondering if it is possible to load test a win forms application. I don't mean writing...
13
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.