Execution plan of sql differs in staging and production
We've a sql query which yields different execution plan in different databases (i.e. in staging and in production).
The tables which are used the sql and the underlying indexes on those tables remain the same in both databases. The tables are analysed before running the sql in both cases.
Can anyone please let me know which are the remaining parameters that need to check in order to get the same explain plan in both situation?