Quote:
|
Originally Posted by karthi_syb
PROD: it uses MERGE JOIN method to join the tables.
DEV: it uses NESTED LOOP JOIN method to join the tables.
|
Two typical reasons for the optimizer to prefer nested loop joins over merge joins:
- the outer table is relatively small
- the cluster ratio of the inner's table join "key" is high
(and the other way around, of course)
So I would indeed expect, as others already stated, that either the outer table's cardinality statistics on your DEV system are a lot smaller than on PROD, or the cluster ratios on at least the inner table differ between PROD and DEV.