Parse.com SDK: What is the purpose of PFRelation?

332 views Asked by At

In the parse.com framework you can associate an object with another object with a PFRelation. I was reading the Parse docs on this but I'm not finding a key point in the documentation. What exactly is the advantage of using a PFRelation? Like, does it make querying for thing faster or more efficient? Does it make it easy for the parse database to keep track of things? Someone help me out with understanding this.

1

There are 1 answers

5
Wain On BEST ANSWER

It makes the maintenance and usage of to-many relationships easy because you can add and remove individual relationships to the set and query the contents of the set. With other relationship approaches (like pointers) this is generally harder to do. It's hard to say about efficiency as that isn't documented but relationships are documented to be the preferred approach so we can assume that they are more efficient.