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

Closed
wants to merge 1 commit into
from

Projects

None yet

1 participant

@akaariai
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
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
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