Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Index compression vs. table compression
Mark Bole wrote:
> Howard J. Rogers wrote:
>
>> Rick Denoire wrote: >> >>> Mark Bole <makbo_at_pacbell.net> wrote: >>> >>> >>>> The following terms appear: "data_segment_compression" for tables >>>> and tablespaces, plus "key_compression" for indexes -- but there is >>>> not an explanation why a tablespace attribute setting can cause >>>> table partitions (and, presumably, non-partitioned tables) to >>>> default to a given "compress" attribute, but not indexes. >>> >>> >>> >>> >>> In other words: What happens when an index is rebuild to a compressed >>> tablespace? Don't know. >> >> >> >> Don't even go there!! You're talking about two different things. About >> as similar as two completely similar things in a pod. :-) >>
>> >> There are all sorts of other "peculiarities" that might/will stump you >> if you persist in seeing the two forms of "compression" (actually, >> merely data 'suppression') as anything whatever to do with each other.
>> >> Such things only seem odd if you expect tables to compress in the same >> sort of way indexes have been doing since 8.1.6. But doing so is a bit >> like expecting ASSM to be as benign as LMT, simply because both >> technologies use bitmaps to do their magic. >> >> Regards >> HJR >> >>
Ah. I think I see your point now. If a tablespace is set to COMPRESS by default, you expect to be able to create an index in there and have it automatically compress(1)??
If so, I agree that it could be confusing. It's certainly not evident from the words alone that the attribute only relates to table block compression.
But then, Oracle has this irritating habit of using the same keywords in all sorts of situations, sometimes benignly, and sometimes not. 'drop table dept CASCADE constraints' does no real damage. It certainly doesn't do any harm to the EMP table, for example. But 'drop user scott CASCADE' wipes out an entire schema without even a by-your-leave!
Alternatively, the day they decide whether to stick to just the one name for all columns currently called things like SEGMENT_NAME, SEG_NAME, or OBJECT_NAME is the day we might expect words like COMPRESS to have unambiguous meanings!!
Regards
HJR
(PS, I discussed table compression in my 9i new features eBook. Just
thought I'd shamelessly mention it!!).
Received on Wed Dec 29 2004 - 17:16:26 CST
![]() |
![]() |