Closed msalvadores closed 5 years ago
We need to have nested attributes ...
University.all :load_attrs => [:name => true, :location => [:country => true, :city => true ]]
Wouldn't this work?
University.all :load_attrs => [:name => true, :location => [:country, :city]]
Otherwise, I think you need this:
University.all :load_attrs => [:name => true, :location => {:country => true, :city => true}]
:+1:
And optionals :(
University.all :load_attrs => [:name => true, :location => {:optional => true, :country => true, :city => :optional}]
Preloading nested attributes will be implemented later. At the moment we prefer to keep the SPARQL queries simple and rely on highly successful caching to improve performance. If queries are simple the cache is likely to be have a higher successful ratio.
It appears this has been sufficiently addressed. Closing.