mysql - SQL query for large data filter from big database -
i have large database on server. database mobile numbers 20 millions of records @ present. want match mobile numbers on website filter dnd or non-dnd mobile numbers. using query small number filtering
select phone_number mobnum_table phone_number in ('7710450282', '76100003451', '8910003402', '9410009850', '7610000191'); but in condition want filter 1,00,000 mobile number records in few seconds..? i heard sql query optimization not aware it. please guide me storage engine should consider in situation?
i have googled it, didn't find answer same.
thanks in advance..
i think there problem in requirement itself. if tell more problem, may can you. anyway not idea give 100000 numbers in in. 1 option create table , inner join.
assume have table selectednumbers columns id , phone_number, can inner join follows
select phone_number mobnum_table inner join selectednumbers b on a.phone_number=b.phone_number as mentioned earlier, question not complete. kindly provide more information can give optimized query.
Comments
Post a Comment