Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Ingres Topics / April 2007

Tip: Looking for answers? Try searching our database.

How can I check used page size for one row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
labartez - 25 Apr 2007 08:29 GMT
Hello Guys

I want to separate rows by pages.
One row per page.

Do You know have can I check page size used by one row?
martin.bowes@ctsu.ox.ac.uk - 25 Apr 2007 08:57 GMT
Hi  labartez,

The simplest way is to use 'with fillfactor=1' in the modify statement.
This doesn't absolutely garuntee one row per page, but it'll gop close in
most circumstances.

The alternative is to add a wide column of nothing to the table so that
each row can occupy only one page, regardless of the fill factor. This
works because the row must not span a page. So making the row width
say 1100 characters in a 2k page will ensure 1 row per page. Make
obvious adjustments for other page sizes.

To see how many rows per page you are getting. The row tid contains
its page and row number. In a 2K page, mod(tid,512) is the row number
and tid/512 is the page number. For a 4k page use 256, 8k use 128
etc...

Martin Bowes

> Hello Guys
>
[quoted text clipped - 7 lines]
> Info-Ingres@kettleriverconsulting.com
> http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres
Paul Mason - 25 Apr 2007 09:01 GMT
> Hello Guys
>
> I want to separate rows by pages.
> One row per page.
>
> Do You know have can I check page size used by one row?

help table table_name will tell you

help table t1\g
Executing . . .

Name:                 t1
Owner:                ingres
Created:              21/08/2006 19:06:28
Location:             ii_database
Type:                 user table
Version:              II9.0
Page size:            2048
Cache priority:       0
Alter table version:  0
Alter table totwidth: 25
Row width:            25               <<<<<<<<<
Number of rows:       4
Storage structure:    heap
Compression:          none
Duplicate Rows:       allowed
Number of pages:      3
Overflow data pages:  0
Journaling:           enabled after the next checkpoint
Base table for view:  no
Permissions:          none
Integrities:          none
Optimizer statistics: none

Column Information:
                                                                 Key
Column Name                      Type       Length Nulls Defaults Seq
i1                               integer         1  yes    null
t1                               varchar        20  yes    null

Secondary indexes:    none

Signature

Paul Mason

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.