id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 18556 Improve query efficiency of .add() on a reverse foreign key Alex Gaynor Tim Graham It does one query per object received, instead of just one for the entire batch. Attached is a patch which fixes this. It's technically not backwards compatible because signals are no longer sent, however one could artificially send them. Also, in the event of an error, none of the objects will be modified, whereas currently some of them will be. Cleanup/optimization closed Database layer (models, ORM) dev Normal fixed Accepted 1 0 0 0 0 0