You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When true, the relationship will determine its resource object identifier without calling the association or its serializer. This can be useful when calling the association object is triggering unnecessary queries.
It works pretty well for native belongs_to serializer's associations, but does not affect to lazy_belongs_to ones at the moment, producing redundant SQL queries.
Lazy relationship still turns N+1 into single query so the problem is not quite critical. In additional, has_one and has_many relationships will be loaded eventually. But still )
The text was updated successfully, but these errors were encountered:
There is a pretty useful jsonapi_use_foreign_key_on_belongs_to_relationship AMS setting:
It works pretty well for native
belongs_to
serializer's associations, but does not affect tolazy_belongs_to
ones at the moment, producing redundant SQL queries.Lazy relationship still turns N+1 into single query so the problem is not quite critical. In additional,
has_one
andhas_many
relationships will be loaded eventually. But still )The text was updated successfully, but these errors were encountered: