Quote:
Originally posted by slimdave
I'd challenge the assumption that all DW's have composite indexes -- I never use them in a straight fact table because they are not well-liked in star transformations, and it reduces the flexibility of your indexing strategy.
We often use and never had any problems..
Quote:
Originally posted by slimdave
Your argument against row ordering here is based on a scenario where you are not querying on the ordered column, and therefore you are querying on columns that are not physically ordered? If the alternative is to avoid ordering on COL1, how does that improve the queries that do not involve COL1? The ordering would be random for those columns, which can hardly be much better.
May be its hardly better, but you are avoiding the chance of it as well..
Quote:
Originally posted by slimdave
I don't think that you have much data warehousing experience. A nested loop join would only be used where the number of likely join for each row in thedimension table is very few. This is usually not the case -- a dim row would join to hundreds/thousands/millions of rows in the fact table, and oracle would use a hash join to do that.
Well well i think we were debating on table access by index range/unique scans where in your data is limited by some driving condition and not just join between corresponding columns of FACT/DIM tables..And in such cases where 'Range/Unique Scans' are involved oracle is bound to use Nested Loops..
Ordering of data will totally be useless if we were to do a FTS/HASH join kinda operation.. Does experience matter??
Quote:
Originally posted by slimdave
Your point also seems to be that therange scan would access enough blocks in the fact table that they get aged out of the SGA? I think that this is a rather contrived scenario, especially in a star transforming environment (see previous post) where predicates against dimension tables get transformed to predicates against the fact table, and the fact table becomes the driver.
Well in any DW environment do you expect only one operation/process/query at a given instant??...
as far as you star transformation is concerned.. the necessary items are silgle column bit map indexes.. if instead single
column btree indexes are present?? -- then you got one more head ache i.e conversion to bit maps from rowids ...
Well mike's case is some what different.. he has multiple column PK index.. will this benifit in star transformations??
Quote:
Originally posted by slimdave
Forget about PK's. I already said that this is not a PK-related technique.
Data type has got nothing to do with this at all. It applies to all data types.
Well i said it would make sense also... do you really bother to order data if table has mixed kinda operations (update/insert/delete)..
Ok not really the case here.. but know what you do and its benifits before you actually implement..
Abhay.