Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to know the fastest way to update couple of tables using mysql where eahc table got abt 20 Million record , plz help me .

thnx in advance
Posted

1 solution

use indexes and run UPDATE ;-) But really, DBF's are long gone and table size isnt that a problem, as long Your WHERE item is indexed. You can cut off transaction if You need extra performance but it strongly depends on Your scenario
 
Share this answer
 
Comments
KaRaMiLo 17-May-10 8:14am    
will i am not so good in mysql , so i really don't know if this going to make a problem or not . But the item in where clause is the same item which will be updated (is it going to to make a problem or not ?).
after adding index to that item inside where clause i will use the item or the index (i guess the item rite ?)
Adrian Pasik 19-May-10 5:39am    
i have done similar scenario and there was'nt any problems. Try with index and without and then pick Your option (but try with.. lets say 1k of UPDATE statement so You can really measure performance gains)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900