I have Table A that has 1:N Relation with Table B. I know that if I want to get all the related data for an entry in table A I do the following ( I have no more than 100 related items per entry):
LoadRelationsQueryBuilder<Map<String, Object>> loadRelationsQueryBuilder; loadRelationsQueryBuilder = LoadRelationsQueryBuilder.ofMap(); loadRelationsQueryBuilder.setRelationName( "titles" ); List<Map<String, Object>> relatedObjects; relatedObjects = Backendless.Data.of( "A" ).loadRelations( albumObjId,loadRelationsQueryBuilder );
I have 2 questions:
1- It says the default number of related data is 10. If I do
loadRelationsQueryBuilder.setPageSize(100); then do I get 100 related data? 10 is too small for any list especially if it was grid video of texts
2- I can’t find in documentation how to do subsquent calls for next page. Do I I just call again
relatedObjects = Backendless.Data.of( "A" ).loadRelations( albumObjId,loadRelationsQueryBuilder );
and the loadRelationsQueryBuilder is smart enough to know where to continue from last time and when it hit the max?