Skip to content

Optimize MySQL model.save() in inheritance cases #61

Closed
wants to merge 1 commit into from

1 participant

@akaariai
Django member

MySQL generated non-necessary queries when saving a multitable
inherited model, and when the save resulted in update.

This issue is tracked in ticket #18304

@akaariai
Django member

cramm raised a good point in #django-dev - the issue is described as MySQL specific, but it is actually about "update_can_self_select". MySQL just happens to be the only core database backend with that problem. I will update the commit message.

@akaariai akaariai Fixed #18304 -- Optimized save() when update_can_self_select=False
Databases with update_can_self_select = False (MySQL for example)
generated non-necessary queries when saving a multitable inherited
model, and when the save resulted in update.
317e4dc
@akaariai
Django member

Pulled in manually in d5c7f9e

@akaariai akaariai closed this May 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.