optimize comparison of reference fields by comparing the ids and not performing a full db lookup
use a simple comparison + use .pk where appropriate
cache the _db_data.get(field) value
Merge pull request #51 from elasticsales/optimize-ref-cmp

Optimize updates in terms of DB queries