How can I improve the performance by joining two big tables and sort by 1st able unique index?
I need only 1st table data with sort by. without order query will performance so fast.
Here is the example of queries
select a.* from T1 a, T2 b where a.c1 = b.c2;
select a.* from T1 a, T2 b where a.c1 = b.c2 order by a.id;
just FYI, T1 and T2 have the proper index.
T1 table count is "54483938"
T2 table count is "54483820"
I am more interest in T1 data with sort by which T1 Records exist on T2.
I tried using an in operator query, it took me into 300 sec.