emberjs/data — pull request #2576 by igorT (2014-12-11 20:59:04+00:00)
Title: Relationship changes

This PR makes several changes to relationship handling:
1. It separates the path through which server side and client side updates happen, which lays the ground work for tracking relationship changes.
2. When pushing records into the store, it splits the push process into three phases using the runloop:
a) Push primary key data and attribtues
b) Turn foreign keys into records
c) Update relationships

The runloop changes have the effect of making pushing relationships at least 50% faster, more if you have more relationships. It also fixes bugs like https://github.com/emberjs/data/pull/2210