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).
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.
- [Django]-Celery: running a worker with superuser privileges
- [Django]-AWS Elastic Beanstalk Django β What happens first when deploying to EB, pip install -r requirements.txt or commands in configuration file
- [Django]-Django ModelMultipleChoiceField queryset/filter for objects already associated
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