dbTalk Databases Forums  

Index organized table

comp.databases.oracle.server comp.databases.oracle.server


Discuss Index organized table in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
buu
 
Posts: n/a

Default Index organized table - 06-15-2008 , 02:49 AM






I'm thinking about some changes in my DB app. to switch one table to an IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?



Reply With Quote
  #2  
Old   
buu
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 03:18 AM






sorry, size of pri. index. is 134Mb, secondary 82 (non-unique, B-tree)

"buu" <aha@a.com> wrote

Quote:
I'm thinking about some changes in my DB app. to switch one table to an
IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?





Reply With Quote
  #3  
Old   
buu
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 03:18 AM



sorry, size of pri. index. is 134Mb, secondary 82 (non-unique, B-tree)

"buu" <aha@a.com> wrote

Quote:
I'm thinking about some changes in my DB app. to switch one table to an
IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?





Reply With Quote
  #4  
Old   
buu
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 03:18 AM



sorry, size of pri. index. is 134Mb, secondary 82 (non-unique, B-tree)

"buu" <aha@a.com> wrote

Quote:
I'm thinking about some changes in my DB app. to switch one table to an
IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?





Reply With Quote
  #5  
Old   
buu
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 03:18 AM



sorry, size of pri. index. is 134Mb, secondary 82 (non-unique, B-tree)

"buu" <aha@a.com> wrote

Quote:
I'm thinking about some changes in my DB app. to switch one table to an
IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?





Reply With Quote
  #6  
Old   
buu
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 03:18 AM



sorry, size of pri. index. is 134Mb, secondary 82 (non-unique, B-tree)

"buu" <aha@a.com> wrote

Quote:
I'm thinking about some changes in my DB app. to switch one table to an
IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?





Reply With Quote
  #7  
Old   
buu
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 03:18 AM



sorry, size of pri. index. is 134Mb, secondary 82 (non-unique, B-tree)

"buu" <aha@a.com> wrote

Quote:
I'm thinking about some changes in my DB app. to switch one table to an
IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?





Reply With Quote
  #8  
Old   
buu
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 03:18 AM



sorry, size of pri. index. is 134Mb, secondary 82 (non-unique, B-tree)

"buu" <aha@a.com> wrote

Quote:
I'm thinking about some changes in my DB app. to switch one table to an
IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.

Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?





Reply With Quote
  #9  
Old   
Robert Klemme
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 04:40 AM



On 15.06.2008 09:49, buu wrote:
Quote:
I'm thinking about some changes in my DB app. to switch one table to an IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
Unless you are using some ancient hardware I would not bother about data
that size at all unless you are expecting this to grow to gigabytes
shortly.

Quote:
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.
Can you be more precise, i.e. post DDL of table and index along with
Oracle version? With the information you have presented so far it is
impossible to come up with a definitive answer.

Quote:
Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?
If you have an IOT with an additional index it may be that you actually
spent more space because the secondary index needs to store the PK to
identify rows. Depending on the size (# of columns as well as types)
the IOT solution might actually take more space especially if you add
more indexes.

Note also that IOT's make some administrative tasks harder. For
example, you cannot just drop the PK constraint as easily as you can do
with regular tables.

Kind regards

robert


Reply With Quote
  #10  
Old   
Robert Klemme
 
Posts: n/a

Default Re: Index organized table - 06-15-2008 , 04:40 AM



On 15.06.2008 09:49, buu wrote:
Quote:
I'm thinking about some changes in my DB app. to switch one table to an IOT.
That table has pri. key wich is always stored in sequence order (in
inserting new row).
Currently, that table is 240Mb big (with more than 2 mil. rows) with an
average row size of 100 bytes.
Unless you are using some ancient hardware I would not bother about data
that size at all unless you are expecting this to grow to gigabytes
shortly.

Quote:
There is an pri. key index and a single B-tree index.
Size of an pri. key index at the moment is 110Mb.
Can you be more precise, i.e. post DDL of table and index along with
Oracle version? With the information you have presented so far it is
impossible to come up with a definitive answer.

Quote:
Is it reccomended to use IOT in my case?
How would it affect insert time for a single row?
If you have an IOT with an additional index it may be that you actually
spent more space because the secondary index needs to store the PK to
identify rows. Depending on the size (# of columns as well as types)
the IOT solution might actually take more space especially if you add
more indexes.

Note also that IOT's make some administrative tasks harder. For
example, you cannot just drop the PK constraint as easily as you can do
with regular tables.

Kind regards

robert


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.