dbTalk Databases Forums  

Indexes much larger on rebuilt table

comp.databases.informix comp.databases.informix


Discuss Indexes much larger on rebuilt table in the comp.databases.informix forum.



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

Default Indexes much larger on rebuilt table - 06-02-2011 , 09:06 PM






IDS 11.5 FC6 on Linux x64

I have a table in a single dbspace taking over 8 milllion pages. I
want to defragment over over 8 dbspaces. I've copied most of the rows
to a new table that is fragmented.

The strange thing is that indexes are now about *twice* the size on the
new table as the old! And, reporting some strange things, eg:

Index Usage Report for index .....

Average Average
Level Total No. Keys Free Bytes
----- -------- -------- ----------
1 1 6 1952
2 6 47 1454
3 283 115 628
4 32772 104 768
5 3411130 105 -279
----- -------- -------- ----------
Total 3444192 105 -269

Any ideas what might be going on here?

thanks
Neil

I raised a PMR, 18686 019 866.

Reply With Quote
  #2  
Old   
Fernando Nunes
 
Posts: n/a

Default Re: Indexes much larger on rebuilt table - 06-03-2011 , 04:29 AM






Are they local or global indexes?
In other words, did you fragment the index using the same expression?
A table and index schema would be helpful.... If the index is on an integer
column, and it became a global index, this is to be expected because the
index row pointer needs to include the partnum of the record.
Does this make sense and/or apply to your case?

Regards.


On Fri, Jun 3, 2011 at 3:06 AM, Neil Truby <neil.truby (AT) ardenta (DOT) com> wrote:

Quote:
IDS 11.5 FC6 on Linux x64

I have a table in a single dbspace taking over 8 milllion pages. I
want to defragment over over 8 dbspaces. I've copied most of the rows
to a new table that is fragmented.

The strange thing is that indexes are now about *twice* the size on the
new table as the old! And, reporting some strange things, eg:

Index Usage Report for index .....

Average Average
Level Total No. Keys Free Bytes
----- -------- -------- ----------
1 1 6 1952
2 6 47 1454
3 283 115 628
4 32772 104 768
5 3411130 105 -279
----- -------- -------- ----------
Total 3444192 105 -269

Any ideas what might be going on here?

thanks
Neil

I raised a PMR, 18686 019 866.

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...

Reply With Quote
  #3  
Old   
Neil Truby
 
Posts: n/a

Default Re: Indexes much larger on rebuilt table - 06-03-2011 , 10:55 AM



"Fernando Nunes" <domusonline (AT) gmail (DOT) com> wrote

Quote:
Are they local or global indexes?
In other words, did you fragment the index using the same expression?
A table and index schema would be helpful.... If the index is on an integer
column, and it became a global index, this is to be expected because the
index row pointer needs to include the partnum of the record.
Quote:
Does this make sense and/or apply to your case?
I sent you the schemas and sistributions privately. I don't want to paste
them to the group, as they're someone else's IP.

The indexes were not fragmented, just built back into a standard 2k dbspace.
Each of those indexes *does* contain an integer so maybe you're onto
something ...?

Thanks for your interest!

Neil

Reply With Quote
  #4  
Old   
Fernando Nunes
 
Posts: n/a

Default Re: Indexes much larger on rebuilt table - 06-03-2011 , 03:35 PM



I think there is something wrong with the files as the tables look the
same... Did you use -ss on dbschema.?

My point is that if your table has only one partition, your indexes will
have just the row id.
If you have a global index (an index partition that contains rows from
several - all - table partitions) the index must contain the partnum in the
row pointer. Partnum and rowid.

That can be the cause of the increase in size....
This is documented somewhere... look for data/index partitioning in the
performance guide. I believe it's there...
Regards.


On Fri, Jun 3, 2011 at 4:55 PM, Neil Truby <neil.truby (AT) ardenta (DOT) com> wrote:

Quote:
"Fernando Nunes" <domusonline (AT) gmail (DOT) com> wrote in message
news:mailman.970.1307093359.1071.informix-list (AT) iiug (DOT) org...
Are they local or global indexes?
In other words, did you fragment the index using the same expression?
A table and index schema would be helpful.... If the index is on an integer
column, and it became a global index, this is to be expected because the
index row pointer needs to include the partnum of the record.
Does this make sense and/or apply to your case?

I sent you the schemas and sistributions privately. I don't want to paste
them to the group, as they're someone else's IP.

The indexes were not fragmented, just built back into a standard 2k
dbspace.
Each of those indexes *does* contain an integer so maybe you're onto
something ...?

Thanks for your interest!

Neil

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...

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

Default LeknPlRIdsVqLEe - 07-06-2011 , 08:09 AM



Well put, sir, well put. I'll ceriatlny make note of that.

--

questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse (AT) newsland (DOT) it

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

Default LMdxkGimUAgWmY - 07-08-2011 , 01:17 AM



Good point. I hadn't tuhgoht about it quite that way.

--

questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse (AT) newsland (DOT) it

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.