parse.com - Handling huge numbers of Relations in Parse -


im using table viewedposts link users , blogposts.

as dont need of data, , experiment on optimisation , bandwidth usage, i'd move relation column.

this relation column become large, lets millions of relations.

lets want have list of blogs , want know if have been viewed user. i'd need full set of relations paginated blogs, if user has viewed millions of blog posts?

i'm pretty sure parse not return millions of relations in user object, truncated.

what best solution this?

you have answer, think, little restatement: user has relation called viewedblog. gets added-to each time user views blog ("blog post" mean here), can relate zillions of those. that's fine since relation column reference table.

when have user, can viewedblog relation, , when relation can it's query. query has features , limitations of regular parse.query (because one).

so can set limit 1k, qualify further (say, post tags), sort (say, descending on recency), , set skip page through results.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -