# What is difference between async true/false on a relationship

**URL:** <https://discuss.emberjs.com/t/what-is-difference-between-async-true-false-on-a-relationship/12102>\
**Category:** Ember Data\
**Created:** [December 14, 2016, 10:37pm UTC](https://discuss.emberjs.com/t/what-is-difference-between-async-true-false-on-a-relationship/12102 "2016-12-14T22:37:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhysdavies1994](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@rhysdavies1994](https://discuss.emberjs.com/u/rhysdavies1994)\
**Post date:** [December 14, 2016, 10:37pm UTC](https://discuss.emberjs.com/t/what-is-difference-between-async-true-false-on-a-relationship/12102/1 "2016-12-14T22:37:04Z")

</div>

When setting up a relationship in ember what is the difference between a async:true and async:false.

We ran into a problem where we had a computed property with a belongsTo property as the dependency and would findAll, then somehow it was getting caught in an infinite loop until we added async:true to the relationship. wondering why it would make a difference, and what async option actually affects. The docs don’t cover it very much

---

<div class="post-metadata">

**Author:** ![Vishu](https://avatars.discourse-cdn.com/v4/letter/v/e99b99/32.png) [@Vishu](https://discuss.emberjs.com/u/Vishu)\
**Post date:** [December 19, 2016, 7:05am UTC](https://discuss.emberjs.com/t/what-is-difference-between-async-true-false-on-a-relationship/12102/2 "2016-12-19T07:05:27Z")

</div>

Hi,

Try to look in to below link. You will get some Idea.

> [@What is an "async relationship"? / \`{async: true}\` vs. \`{async: false}\`](http://discuss.emberjs.com/t/what-is-an-async-relationship-async-true-vs-async-false/4107):
>
> The Ember Data API mentions the concept of “async relationships”. E.g., [DS.belongsTo(..)](http://emberjs.com/api/data/classes/DS.html#method_belongsTo) and [DS.hasMany(..)](http://emberjs.com/api/data/classes/DS.html#method_hasMany) both allow to provide a hash with key async: App.Post = DS.Model.extend({ comments: DS.hasMany('comment', {async: true}) }); What is the difference of async being either true or false and what consequences does it have on application design?

Regarding your error, try to follow side loading for data.

Thanks.
