Save 
Join IIUG
 for   
 

Informix News
29 July 09 - Wall Street Journal - IBM to Acquire SPSS, Adding to Acquisitions... Read
11 February 09 - InformationWeek - IBM Drifts Slowly Toward Mainstream Cloud Computing... Read
11 February 09 - CNNMoney.com - IBM to Deliver Software via Cloud Computing With Amazon Web Services... Read
07 January 09 - Huliq News - IBM Power Servers Helps Bank of Chengdu Build Up Core Banking System.. Read
04 December 08 - Steeleye - Multicarta achieves 99.997% uptime for its Informix-based Credit Card Authorization Centre... Read
16 October 08 - VendorRate - Informix Earns Top Customer Satisfaction Score on VendorRate in Q3... Read
14 August 08 - IIUG.org - Sellout Expected for the 2009 IIUG Informix Conference... Read
29 April 08 - IntelligentEnterprise.com - IBM Informix Upgrade Enhances Clustering, Database Management... Read
29 April 08 - itweek.com - IBM 'Cheetah 2' mauls data costs... Read
28 April 08 - eWeek.com - IBM Uncages Cheetah 2 Data Server... Read
28 April 08 - CNNMoney.com - IBM Helps Clients Reduce Data Management Costs With New Informix Dynamic Server... Read
09 April 08 - CNNMoney.com - MediaSpan Embeds IBM Informix Dynamic Server Software for Delivering News to Print, Web and Wireless Devices... Read
08 April 08 - IT-Director.com - Informix seeks developers... Read
18 February 08 - marketwire.com - Icarus Studios Partners With IBM to Upgrade Performance, Availability for Its Online Games... Read
17 January 08 - eWeek.com - IBM Adds Mac Support to IDS for Higher Education... Read
17 January 08 - informationweek.com - Lotus Notes For iPhone Signals Closer Ties Between IBM, Apple... Read
16 January 08 - marketwire.com - IBM Informix Dynamic Server to Deliver Support for Mac OS X... Read
16 January 08 - internetnews.com - IBM's IDS to Support Mac Platform... Read
28 June 07 - REG Developer - IBM and Informix tie down Cheetah... Read
27 June 07 - CBRonline.com - IBM corrects its own Informix customer figures... Read
14 June 07 - vnunet.com - IBM changes spots with Informix 'Cheetah' database... Read
14 June 07 - eChannelLine - IBM expands scope for IDS... Read
14 June 07 - Resellernews - IBM: Informix database alive and kicking... Read
13 June 07 - DB2 Magazine - Cheetah is now out of the gate... Read
12 June 07 - IBM - IDS 11 release announcement (pdf)... Read
12 June 07 - ChannelWeb Network - IBM Uncages IDS 11, Aka Cheetah, Database... Read
12 June 07 - eWeek.com - IBM's 'Cheetah' Ready to Pounce... Read
12 June 07 - InformationWeek - IBM Unleashes 'Cheetah' Database... Read
12 June 07 - WebWire - IBM Strengthens Database Portfolio With New Informix Dynamic Server... Read
12 June 07 - Intelligent Enterprise - IBM Unveils Informix Upgrade... Read
12 June 07 - ComputerWeekly.com - IBM's Cheetah IDS makes leap to better data centre clustering... Read
12 June 07 - ebiz - IBM Unveils Next Generation Informix Dynamic Server... Read
12 June 07 - computerworld.com - Will 'Cheetah' help IBM's Informix chase down market share?... Read
12 June 07 - Internetnews.com - No Data Can Outrun This 'Cheetah'... Read
12 June 07 - de.internet.com - IBM neuer Datenbank-Server mit Codenamen Cheetah ist fertig... Read
12 June 07 - verifox.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - golem.de - Informix 11 vorgestellt... Read
12 June 07 - Computerwoche.de - IBM stellt neue Informix-Version vor... Read
12 June 07 - IBM.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - Heise - IBM gibt Informix 11 frei... Read
25 May 07 - Taiwan.CNET.com - Local Taiwan Informix user group established... (Chinese language) ... Read
18 May 07 - ChannelWeb Network - IBM Musters Partners For Cheetah Release... Read
18 May 07 - eWeek.com - IBM Looks to 'Cheetah' to Speed Up Blade Servers... Read
7 May 07 - DB2 Magazine - SQL Shortcuts - Use these tricks to generate IDS SQL scripts... Read


End of Support Dates

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

RE: figuring out extents

Posted By: Thirugnanam, Kannan
Date: Tuesday, 10 May 2005, at 12:11 p.m.

In Response To: RE: figuring out extents (Bono Vox)


I have used the attached excel file to estimate the DB space. Over the
years, it has worked quite well for me.

Caveats:
1. If the row size is greater than 2000 bytes, it might extent to more
than one page. The new feature in Version 10 (page size) would help in
that scenario.
2. If there are a lot of deletes, then the index tree gets larger. The
index overhead ratio should be increased from 1.25. I have used 1.4.
3. Projected % depends on your companies business growth.

I got this calculations from a training material, long back. There might
be an Informix internal calculation available at IBM. If the internal
folks (Soft. Eng.) could get us something, it would be great.


Thank you,
Kannan Thirugnanam

-----Original Message-----
From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org] On
Behalf Of Bono Vox
Sent: Tuesday, May 10, 2005 8:18 AM
To: ids@iiug.org
Subject: RE: figuring out extents [4894]=20

http://www.iiug.org/software/archive/extentsize

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

From: Clem Akins <cwakins@leia.alloys.rmc.com>
Subject: Extent Sizes

In keeping with the current threads on extents and row sizing, here's
a little script that I copied from the Informix SQL Tutorial.

It was written on a DEC Ultrix box, and runs without modification on a
new Digital Unix machine. Maybe it will run on yours. Let me know if
you find fault with it.

Enjoy,
__________________________________________________________________
| Clem Akins Standard Disclaimers Apply |
|Reynolds Metals Co, Alloys Plant "Climb High, Cave Deep!" |
| Muscle Shoals, Alabama USA cwakins@leia.alloys.rmc.com |
|________________________________________________________________|

BEGIN SCRIPT - - - - -
#!/bin/sh

#set -x

# calculate extent sizing for a table
# and upper limit on extents for a table
# these formulas taken from
# Informix Guide to SQL Tutorial v4.10 July 1991 pg 10-12
#
# cwa 5-18-93

pgsize=3D2048 #in tbconfig
file
pageuse=3D`expr $pgsize - 28`
rowsize=3D0

echo "Enter the estimated number of rows: "
read estrows

echo "How many columns in the table? "
read numcols

colspace=3D`expr $numcols \* 4`

echo "Enter the maximum row size (from tbcheck)"
echo "or zero to describe each column one-by-one: "
read rowsize

if [ $rowsize =3D 0 ]
then
i=3D0
while [ $i -lt $numcols ]
do
i=3D`expr $i + 1`
clear
echo ""
echo ""
echo " TEXT and BYTE: ................. 56 bytes"
echo " SMALLINT: ....................... 2 bytes"
echo " INTEGER: ........................ 4 bytes"
echo " SMALLFLOAT: ..................... 4 bytes"
echo " FLOAT: .......................... 8 bytes long"
echo " SERIAL: ......................... 4 bytes long"
echo " DATE: ........................... 4 bytes long"
echo ""
echo " MONEY & DECIMAL: 1/2 total digits + 1 (rounded
up)"
echo ""
echo " DATETIME & INTERVAL:"
echo " length is (((sum of digits)/2) +1) (rounded
up)"
echo " digits are:"
echo " YEAR: .......4 digits (unless you
specified more)"
echo " FRACTION: ...3 digits (unless you
specified more)"
echo " all others: .2 digits (unless you
specified more)"
echo ""
echo " CHAR columns as defined"
echo ""
echo "Enter the size in bytes of column $i: "
read sizetemp
rowsize=3D`expr $rowsize + $sizetemp`
done

rowsize=3D`expr $rowsize + 4`
fi

echo "How many indexes in the table? "
read numindexes

ixspace=3D`expr $numindexes \* 12`

ixparts=3D0
ixtemp=3D0
i=3D0
while [ $i -lt $numindexes ]
do
i=3D`expr $i + 1`
echo "Enter the number of columns in index $i: "
read numixcols
ixtemp=3D`expr $numixcols \* 4`
ixparts=3D`expr $ixparts + $ixtemp`
done

echo "The size of the row is: $rowsize"

if [ $rowsize -le $pageuse ]
then
homerow=3D$rowsize
overpage=3D0
else
homerow=3D`expr 4 + rowsize % pageuse`
overpage=3D`expr $rowsize / $pageuse`
fi

datrows=3D`expr $pageuse / $homerow`

if [ $datrows -gt 255 ]
then
datrows=3D255
fi

dattemp=3D`expr $estrows % $datrows` #modulo
(remainder)
if [ $dattemp !=3D 0 ]
then
datpages=3D`expr $estrows / $datrows`
datpages=3D`expr 1 + $datpages`
else
datpages=3D`expr $estrows / $datrows`
fi

expages=3D`expr $overpage \* $estrows`
totpages=3D`expr $datpages + $expages`
echo "Total pages required for this table: $totpages"

exttemp=3D`expr $colspace + $ixspace + $ixparts + 84`
extspace=3D`expr $pgsize - $exttemp`
limit=3D`expr $extspace / 8`
echo "Maximum number of extents allowed for this table: $limit"
END SCRIPT - - - - - - -

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D











>From: "Floyd Welle...." <fwellers@yahoo.com>
>To: ids@iiug.org
>Subject: figuring out extents [4889] Date: Mon, 9 May 2005 11:07:12
-0400=20
>(EDT)
>
>Hello,
>Does anyone have a script to be able to figure out the storage
parameters (=20
>first extent and next extent sizes ), based on a table schema, number
of=20
>expected rows, and growth ?
>
>Thanks,
>floyd
>
>




Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.