sql differences
i have a query that executes fast in one database and takes long time to execute in another..i have attached execution plan as good and bad plan
things i noticed are
1.In good plan parallel execution is used
2.PS0CA_CONSTR_HDR doing a fast full scan in good plan where as in bad plan it chooses range scan
3.There are no major object differences but i can see in bad plan additional index are used instaed of full scan in good plan.(both the databases has the same set of indexes)
when i change the indexes in bad plan to invisible parallel is used but still the execution is slow.