Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets   Hide Images

Rate this post by selecting a number. 1 is the worst and 5 is the best.

    (Worst)    1    2    3    4    5     (Best)

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Jaffaa
Mudiripoyina Bewarse
Username: Jaffaa

Post Number: 20979
Registered: 03-2008

Rating: N/A
Votes: 0

Posted on Monday, June 25, 2012 - 3:16 pm:   

select a.col1 from table_a a inner join table_b b on (a.col1=b.col1)

ani vundhi

table_a loo 500 million rows vunnayi
table_b loo 6 million rows vunnaayi

and b.col1 is primary key for table_b

the above query is taking very long long....

question eemiti ante if I re-write the query to something like this, would it help the performance



select a.col1 from table_b b inner join table_a a on (b.col1=a.col1)

?

result set eemanna effect avuthundhaa?

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration