If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
For that query, there should be an index on a.column1 and another on b.column1. You "order by" is redundant, remove the b.column1 since it is the same as a.column1.
Adding indexes just to satisfy an order by clause may not be the best idea. You get the most bang for the buck with indexes when they cover foreign key relationships and the predicates in a where clause.