Main Page | Report this Page
Computers Forum Index  »  Computer - Databases - IBM DB2  »  how many records contribute to a page....
Page 1 of 1    

how many records contribute to a page....

Author Message
Sivaswami Jeganathan...
Posted: Thu Oct 29, 2009 12:21 am
Guest
Hi

How to determine how many records contribute to a page in a table
( provided the structure of the table and pagesize ).
 
spider007...
Posted: Thu Oct 29, 2009 10:20 am
Guest
On Oct 29, 5:21 am, Sivaswami Jeganathan <sivaswamim... at (no spam) gmail.com>
wrote:
Quote:
Hi

How to determine how many records contribute to a page in a table
( provided the structure of the table and pagesize ).

You can look at avgrowsize in syscat.tables. That gives you average
row size and you have the page size. Now you can do the
mathematics Smile. That should give you approx number of rows/page. Of
course, it depends on lot of other things and this is just an
approximation.
 
Frederik Engelen...
Posted: Thu Oct 29, 2009 12:03 pm
Guest
On Oct 29, 11:20 am, spider007 <saurabh.saurabhj... at (no spam) gmail.com> wrote:
Quote:
On Oct 29, 5:21 am, Sivaswami Jeganathan <sivaswamim... at (no spam) gmail.com
wrote:

Hi

How to determine how many records contribute to a page in a table
( provided the structure of the table and pagesize ).

You can look at avgrowsize in syscat.tables. That gives you average
row size and you have the page size. Now you can do the
mathematics Smile. That should give you approx number of rows/page. Of
course, it depends on lot of other things and this is just an
approximation.

To be able to calculate this in advance, check the "CREATE TABLE"
statement in the Infocenter.

--
Frederik
 
 
Page 1 of 1    
All times are GMT
The time now is Thu Dec 10, 2009 1:03 am