Y
Hacker News
new
|
ask
|
show
|
jobs
by
philangist
4671 days ago
I originally thought it might be that too, but it seems to me like you'll have to hit the database n times for n queries no matter what. Unless Django has some builtin batch save functionality.
1 comments
victorhooi
4671 days ago
Hmm, there's bulk_create(), introduced in Django 1.4, to create multiple new objects in one DB call.
However, I'm not aware of anything that would do the same to update properties.
link
However, I'm not aware of anything that would do the same to update properties.