Create a raw MySQL query in Django to bulk updata millions of records

Closed Posted 7 years ago Paid on delivery
Closed Paid on delivery

I have a very large MySQL table in my Django project. I need a Django Management Command with raw MySQL query to bulk updata millions of records.

If I just create a big string with one million update queries MySQL will go away.

e.g.:

"

UPDATE my_big_table SET value = 15.61 WHERE id = 1;

UPDATE my_big_table SET value = 35.61 WHERE id = 2;

...

UPDATE my_big_table SET value = 265.58.61 WHERE id = 1000000;

"

So the idea is to to create the the query in batches of 1000 and to update the MySQL database using threading ...

... keep getting: [login to view URL]: (2014, "Commands out of sync;

Django Python

Project ID: #12966798

About the project

5 proposals Remote project Active 7 years ago

5 freelancers are bidding on average $59 for this job

tangramua

dear sir, my team has relevant sql experience. Drop me a line if you are interested.

$54 USD in 3 days
(7 Reviews)
4.2
sgayu12

A proposal has not yet been provided

$35 USD in 2 days
(0 Reviews)
0.0
jayantsingh305

i have done it already using multiprocessing put raw data in amazon redshift data ware house. so i same way i will perform the updation

$50 USD in 1 day
(0 Reviews)
0.0