[Django]-Bulk updating a table

1πŸ‘

βœ…

I’ve had some success using this bulk update snippet:
http://djangosnippets.org/snippets/446/

It’s a bit outdated, but it worked on django 1.1, so I suppose you can still make it work. If you are looking for a quick way to do a one time bulk insert, this is the quickest (I’m not sure I’d trust it for regular use without seriously testing performance).

πŸ‘€OmerGertel

2πŸ‘

Look at my answer here: Django: form that updates X amount of models

The QuerySet has update() method – rest is explained in above link.

πŸ‘€bx2

1πŸ‘

I’ve made a terribly crude attempt on a solution for this problem, but it’s not finished yet and it doesn`t support working with django orm objects directly – yet.

http://pypi.python.org/pypi/dse/0.1.0

It`s not been properly testet and let me know if you have any suggestions on how to improve it. Using the django orm to do stuff like this is terrible.

Thomas

πŸ‘€Weholt

Leave a comment