We could, but I thought when you said "scalability" you were thinking that
we wouldn't be getting a bunch of data over the network by having to fetch
all of the questions for a given id in the database if there are a lot. If
we only did it Android side, then we are still retrieving all of the
questions from the database.


On Wed, May 29, 2013 at 12:03 AM, Bennett Ng <notifications@github.com>wrote:

> In
> InterviewAnnihilator/src/com/huskysoft/interviewannihilator/service/QuestionService.java:
>
> > @@ -201,10 +215,20 @@ public PaginatedQuestions getMyQuestions(List<Category> categories,
> >  				random, userInfo.getUserId());
> >  	}
> >
> > -	public PaginatedQuestions getFavoriteQuestions(int limit, int offset) {
> > +	/**
> > +	 * Get questions the user has favorited
> > +	 *
> > +	 * @return the questions the user has favorited
> > +	 * @throws NetworkException
> > +	 * @throws IOException
> > +	 */
> > +	public List<Question> getFavoriteQuestions()
>
> Oh, I was thinking we could just implement limit-offset at the Android
> level. That is, get a sub-array from the array of favorite question IDs.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/huskysoft/403Interviewer/pull/165/files#r4428937>
> .
>