Unix Technical Forum

Index based database?

This is a discussion on Index based database? within the Oracle Database forums, part of the Database Server Software category; --> I've seen this a few times since getting into Warehousing, but I need a sanity check. How often has ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 02:54 AM
EscVector
 
Posts: n/a
Default Index based database?

I've seen this a few times since getting into Warehousing, but I need a
sanity check.

How often has anyone seen the total INDEX bytes exceed DATA bytes,
meaning I have more data stored in standard indexes, not index
organized tables, than regular heap tables.

Anyone?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 02:54 AM
Jim Smith
 
Posts: n/a
Default Re: Index based database?

In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
EscVector <Junk@webthere.com> writes
>I've seen this a few times since getting into Warehousing, but I need a
>sanity check.
>
>How often has anyone seen the total INDEX bytes exceed DATA bytes,
>meaning I have more data stored in standard indexes, not index
>organized tables, than regular heap tables.
>

It is not unusual.

Given the rowid overhead in an index, if the table is quite narrow a
single index could easily be larger than the table. If you have multiple
indexes the total index space could be several times the size of the
table.
--
Jim Smith
Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
RSS <http://oracleandting.blogspot.com/atom.xml>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 02:54 AM
EscVector
 
Posts: n/a
Default Re: Index based database?

The tables are not narrow.
Example 27 col table has 26 single column indexes.

Still normal?


Jim Smith wrote:
> In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
> EscVector <Junk@webthere.com> writes
> >I've seen this a few times since getting into Warehousing, but I need a
> >sanity check.
> >
> >How often has anyone seen the total INDEX bytes exceed DATA bytes,
> >meaning I have more data stored in standard indexes, not index
> >organized tables, than regular heap tables.
> >

> It is not unusual.
>
> Given the rowid overhead in an index, if the table is quite narrow a
> single index could easily be larger than the table. If you have multiple
> indexes the total index space could be several times the size of the
> table.
> --
> Jim Smith
> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
> RSS <http://oracleandting.blogspot.com/atom.xml>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 02:54 AM
Jim Smith
 
Posts: n/a
Default Re: Index based database?

In message <1166110172.104499.291490@80g2000cwy.googlegroups. com>,
EscVector <Junk@webthere.com> writes
>The tables are not narrow.
>Example 27 col table has 26 single column indexes.
>
>Still normal?
>
>
>Jim Smith wrote:
>> In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
>> EscVector <Junk@webthere.com> writes
>> >I've seen this a few times since getting into Warehousing, but I need a
>> >sanity check.
>> >
>> >How often has anyone seen the total INDEX bytes exceed DATA bytes,
>> >meaning I have more data stored in standard indexes, not index
>> >organized tables, than regular heap tables.
>> >

>> It is not unusual.
>>
>> Given the rowid overhead in an index, if the table is quite narrow a
>> single index could easily be larger than the table. If you have multiple
>> indexes the total index space could be several times the size of the
>> table.
>> --
>> Jim Smith
>> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
>> RSS <http://oracleandting.blogspot.com/atom.xml>

>


Please don't top post.

You are querying the number of indexes rather than the total size, which
was how I read it in the first place.

26 indexes seems over the top, but if it is a data warehouse fact table
with foreign keys to dimension tables perhaps they are justified.

The only real test is - does it perform well?
--
Jim Smith
Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
RSS <http://oracleandting.blogspot.com/atom.xml>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 02:55 AM
DA Morgan
 
Posts: n/a
Default Re: Index based database?

EscVector wrote:
> The tables are not narrow.
> Example 27 col table has 26 single column indexes.
>
> Still normal?
>
>
> Jim Smith wrote:
>> In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
>> EscVector <Junk@webthere.com> writes
>>> I've seen this a few times since getting into Warehousing, but I need a
>>> sanity check.
>>>
>>> How often has anyone seen the total INDEX bytes exceed DATA bytes,
>>> meaning I have more data stored in standard indexes, not index
>>> organized tables, than regular heap tables.
>>>

>> It is not unusual.
>>
>> Given the rowid overhead in an index, if the table is quite narrow a
>> single index could easily be larger than the table. If you have multiple
>> indexes the total index space could be several times the size of the
>> table.
>> --
>> Jim Smith
>> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
>> RSS <http://oracleandting.blogspot.com/atom.xml>


Please don't top post. Scroll to the bottom to reply.

Given that this is a warehouse it may be fine and it may be excessive.

Is is a "real" warehouse designed as one or just a copy of an OLTP schema?
Are they being used?
What index type?
What version of Oracle?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 02:55 AM
EscVector
 
Posts: n/a
Default Re: Index based database?


DA Morgan wrote:
> EscVector wrote:
> > The tables are not narrow.
> > Example 27 col table has 26 single column indexes.
> >
> > Still normal?
> >
> >
> > Jim Smith wrote:
> >> In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
> >> EscVector <Junk@webthere.com> writes
> >>> I've seen this a few times since getting into Warehousing, but I need a
> >>> sanity check.
> >>>
> >>> How often has anyone seen the total INDEX bytes exceed DATA bytes,
> >>> meaning I have more data stored in standard indexes, not index
> >>> organized tables, than regular heap tables.
> >>>
> >> It is not unusual.
> >>
> >> Given the rowid overhead in an index, if the table is quite narrow a
> >> single index could easily be larger than the table. If you have multiple
> >> indexes the total index space could be several times the size of the
> >> table.
> >> --
> >> Jim Smith
> >> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
> >> RSS <http://oracleandting.blogspot.com/atom.xml>

>
> Please don't top post. Scroll to the bottom to reply.
>
> Given that this is a warehouse it may be fine and it may be excessive.
>
> Is is a "real" warehouse designed as one or just a copy of an OLTP schema?
> Are they being used?
> What index type?
> What version of Oracle?
> --
> Daniel A. Morgan
> University of Washington
> damorgan@x.washington.edu
> (replace x with u to respond)
> Puget Sound Oracle Users Group
> www.psoug.org


Sorry about the top post.... Was in beta and screwed up..

Answer:
1. Kimbal Based Warehouse no legacy OLTP and no ODS, designed for
warehouse/reporting

2. Indexes being used: not always - but that's another issue.

3. Index type = B*Tree, all B*Tree

4. Database Versions (see below)
COMP_ID COMP_NAME VERSION STATU
CATALOG Oracle Database Catalog Views 10.2.0.2.0 VALID
CATPROC Oracle Database Packages and Types 10.2.0.2.0 VALID
OWM Oracle Workspace Manager 10.2.0.1.0 VALID
JAVAVM JServer JAVA Virtual Machine 10.2.0.2.0 VALID
XML Oracle XDK
10.2.0.2.0 VALID
CATJAVA Oracle Database Java Packages 10.2.0.2.0 VALID
EXF Oracle Expression Filter
10.2.0.2.0 VALID
XDB Oracle XML Database
10.2.0.2.0 VALID
RUL Oracle Rules Manager
10.2.0.2.0 VALID

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 02:55 AM
EscVector
 
Posts: n/a
Default Re: Index based database?


Jim Smith wrote:
> In message <1166110172.104499.291490@80g2000cwy.googlegroups. com>,
> EscVector <Junk@webthere.com> writes
> >The tables are not narrow.
> >Example 27 col table has 26 single column indexes.
> >
> >Still normal?
> >
> >
> >Jim Smith wrote:
> >> In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
> >> EscVector <Junk@webthere.com> writes
> >> >I've seen this a few times since getting into Warehousing, but I need a
> >> >sanity check.
> >> >
> >> >How often has anyone seen the total INDEX bytes exceed DATA bytes,
> >> >meaning I have more data stored in standard indexes, not index
> >> >organized tables, than regular heap tables.
> >> >
> >> It is not unusual.
> >>
> >> Given the rowid overhead in an index, if the table is quite narrow a
> >> single index could easily be larger than the table. If you have multiple
> >> indexes the total index space could be several times the size of the
> >> table.
> >> --
> >> Jim Smith
> >> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
> >> RSS <http://oracleandting.blogspot.com/atom.xml>

> >

>
> Please don't top post.
>
> You are querying the number of indexes rather than the total size, which
> was how I read it in the first place.
>
> 26 indexes seems over the top, but if it is a data warehouse fact table
> with foreign keys to dimension tables perhaps they are justified.
>
> The only real test is - does it perform well?
> --
> Jim Smith
> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
> RSS <http://oracleandting.blogspot.com/atom.xml>


Sorry for the top post...

And thanks for the response.

I'm looking at the system overall, and found one table containing
almost as many indexes to columns. They are unique, not fk indexes.

The functional design uses schema as functional use container, as in
STAGE, LOAD, etc.

The 26 index table is in a Translation schema.

Total data bytes for this one schema = 6291456000
Total index bytes for this one schema = 15728640000

data is 40% of index or another way, index space required is 2.5 time
larger than data.

Think simple, not a big warehouse.

Looking for first or seconds thoughts as you see it. Questions to ask
Data Modeler.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 02:55 AM
EscVector
 
Posts: n/a
Default Re: Index based database?


EscVector wrote:
> DA Morgan wrote:
> > EscVector wrote:
> > > The tables are not narrow.
> > > Example 27 col table has 26 single column indexes.
> > >
> > > Still normal?
> > >
> > >
> > > Jim Smith wrote:
> > >> In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
> > >> EscVector <Junk@webthere.com> writes
> > >>> I've seen this a few times since getting into Warehousing, but I need a
> > >>> sanity check.
> > >>>
> > >>> How often has anyone seen the total INDEX bytes exceed DATA bytes,
> > >>> meaning I have more data stored in standard indexes, not index
> > >>> organized tables, than regular heap tables.
> > >>>
> > >> It is not unusual.
> > >>
> > >> Given the rowid overhead in an index, if the table is quite narrow a
> > >> single index could easily be larger than the table. If you have multiple
> > >> indexes the total index space could be several times the size of the
> > >> table.
> > >> --
> > >> Jim Smith
> > >> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
> > >> RSS <http://oracleandting.blogspot.com/atom.xml>

> >
> > Please don't top post. Scroll to the bottom to reply.
> >
> > Given that this is a warehouse it may be fine and it may be excessive.
> >
> > Is is a "real" warehouse designed as one or just a copy of an OLTP schema?
> > Are they being used?
> > What index type?
> > What version of Oracle?
> > --
> > Daniel A. Morgan
> > University of Washington
> > damorgan@x.washington.edu
> > (replace x with u to respond)
> > Puget Sound Oracle Users Group
> > www.psoug.org

>
> Sorry about the top post.... Was in beta and screwed up..
>
> Answer:
> 1. Kimbal Based Warehouse no legacy OLTP and no ODS, designed for
> warehouse/reporting
>
> 2. Indexes being used: not always - but that's another issue.
>
> 3. Index type = B*Tree, all B*Tree
>
> 4. Database Versions (see below)
> COMP_ID COMP_NAME VERSION STATU
> CATALOG Oracle Database Catalog Views 10.2.0.2.0 VALID
> CATPROC Oracle Database Packages and Types 10.2.0.2.0 VALID
> OWM Oracle Workspace Manager 10.2.0.1.0 VALID
> JAVAVM JServer JAVA Virtual Machine 10.2.0.2.0 VALID
> XML Oracle XDK
> 10.2.0.2.0 VALID
> CATJAVA Oracle Database Java Packages 10.2.0.2.0 VALID
> EXF Oracle Expression Filter
> 10.2.0.2.0 VALID
> XDB Oracle XML Database
> 10.2.0.2.0 VALID
> RUL Oracle Rules Manager
> 10.2.0.2.0 VALID


I guess I should have said that I'm looking for first thoughts and
questions to ask the Data Modeler.

My initial thoughts are that some if not many of these indexes could be
combined, but there are app considerations, so may not be cost
effective. During runs we have 90gb undo, so that is also a big
downside to having so many indexes. 90gb for 6gb of real data. Undo
gets backed up by RMAN unless resized prior to backup. 99.9333333% of
backup would be UNDO. Total data in db is around 70gb.

I'm interested in the design as it pertains to eliminating waste as in
"the fast way to speed something up is to not do it".

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-26-2008, 02:55 AM
Geoff Muldoon
 
Posts: n/a
Default Re: Index based database?

Junk@webthere.com says...
> DA Morgan wrote:
> >
> > Is is a "real" warehouse designed as one or just a copy of an OLTP schema?
> > Are they being used?
> > What index type?

>
> 1. Kimbal Based Warehouse no legacy OLTP and no ODS, designed for
> warehouse/reporting
>
> 2. Indexes being used: not always - but that's another issue.
>
> 3. Index type = B*Tree, all B*Tree


It is often common for indexes in a DW to be bitmap rather than b-tree.

Good book by Bert Scalzo specifically on Oracle/DW/star schemas is worth a
read.

GM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-26-2008, 02:55 AM
EscVector
 
Posts: n/a
Default Re: Index based database?


EscVector wrote:
> DA Morgan wrote:
> > EscVector wrote:
> > > The tables are not narrow.
> > > Example 27 col table has 26 single column indexes.
> > >
> > > Still normal?
> > >
> > >
> > > Jim Smith wrote:
> > >> In message <1166109023.164657.84250@l12g2000cwl.googlegroups. com>,
> > >> EscVector <Junk@webthere.com> writes
> > >>> I've seen this a few times since getting into Warehousing, but I need a
> > >>> sanity check.
> > >>>
> > >>> How often has anyone seen the total INDEX bytes exceed DATA bytes,
> > >>> meaning I have more data stored in standard indexes, not index
> > >>> organized tables, than regular heap tables.
> > >>>
> > >> It is not unusual.
> > >>
> > >> Given the rowid overhead in an index, if the table is quite narrow a
> > >> single index could easily be larger than the table. If you have multiple
> > >> indexes the total index space could be several times the size of the
> > >> table.
> > >> --
> > >> Jim Smith
> > >> Ponder Stibbons Limited <http://oracleandting.blogspot.com/>
> > >> RSS <http://oracleandting.blogspot.com/atom.xml>

> >
> > Please don't top post. Scroll to the bottom to reply.
> >
> > Given that this is a warehouse it may be fine and it may be excessive.
> >
> > Is is a "real" warehouse designed as one or just a copy of an OLTP schema?
> > Are they being used?
> > What index type?
> > What version of Oracle?
> > --
> > Daniel A. Morgan
> > University of Washington
> > damorgan@x.washington.edu
> > (replace x with u to respond)
> > Puget Sound Oracle Users Group
> > www.psoug.org

>
> Sorry about the top post.... Was in beta and screwed up..
>
> Answer:
> 1. Kimbal Based Warehouse no legacy OLTP and no ODS, designed for
> warehouse/reporting
>
> 2. Indexes being used: not always - but that's another issue.
>
> 3. Index type = B*Tree, all B*Tree
>
> 4. Database Versions (see below)
> COMP_ID COMP_NAME VERSION STATU
> CATALOG Oracle Database Catalog Views 10.2.0.2.0 VALID
> CATPROC Oracle Database Packages and Types 10.2.0.2.0 VALID
> OWM Oracle Workspace Manager 10.2.0.1.0 VALID
> JAVAVM JServer JAVA Virtual Machine 10.2.0.2.0 VALID
> XML Oracle XDK
> 10.2.0.2.0 VALID
> CATJAVA Oracle Database Java Packages 10.2.0.2.0 VALID
> EXF Oracle Expression Filter
> 10.2.0.2.0 VALID
> XDB Oracle XML Database
> 10.2.0.2.0 VALID
> RUL Oracle Rules Manager
> 10.2.0.2.0 VALID


I guess I should have said that I'm looking for first thoughts and
questions to ask the Data Modeler.

My initial thoughts are that some if not many of these indexes could be
combined, but there are app considerations, so may not be cost
effective. During runs we have 90gb undo, so that is also a big
downside to having so many indexes. 90gb for 6gb of real data. Undo
gets backed up by RMAN unless resized prior to backup. 99.9333333% of
backup would be UNDO. Total data in db is around 70gb.

I'm interested in the design as it pertains to eliminating waste as in
"the fast way to speed something up is to not do it".

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com