Relationships

7 posts, 0 answers
  1. chris
    chris avatar
    9 posts
    Member since:
    Dec 2008

    Posted 21 Jun 2013 Link to this post

    Hey Guys

    I hope I'm not going to be one of those annoying people who ask really basic questions. 
    I have got some basic stuff working and have been playing around with the ability to have friend requests. 

    I have implemented the request as a content type, with relation fields for the requested by and friend to be requested. 
    Im then thinking of having a list of friend requests pending and for approval. 

    Does this sound like a viable approach?

    If so any good example of how to handle related objects in code?  e.g. From the request get the user.

    Ta
    Chris
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 21 Jun 2013 Link to this post

    Hello Christian,

    Thanks for writing and for your questions.

    They are not basic questions and target a really important topic.

    We are currently working on the concept of having infrastructure for relations on SynchronizationContext level. At the time you can simply define different SynchronizationContext instances for each content type, synchronize them accordingly and manually find the objects which relate to each other by enumerating the View property.

    We will appreciate your feedback on how would you like to see the relations support? Do you have any API ideas or expectations of how things should be working?

    Thanks for your time!

    Looking forward to your feedback!

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Simon
    Simon avatar
    52 posts
    Member since:
    Jun 2010

    Posted 21 Jun 2013 Link to this post

    I've been looking at similar things trying join queries between synchronisation contexts.

    But if you can come up with a lite relationship model between synchronisation contexts then that would be absolutely awesome.

    Great question
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 26 Jun 2013 Link to this post

    Hello Simon,

    We will be thinking in that direction. This comes next on our TODO list regarding the Telerik Sync mechanism.

    Let me know should you have further questions.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. Simon
    Simon avatar
    52 posts
    Member since:
    Jun 2010

    Posted 26 Jun 2013 Link to this post

    I managed (through a lot of hard work, searching and hair pulling) to get something similar implemented in Azure using server side queries.
    This meant the weight of the search / join was performed on the backend rather than on the client.

    This seemed quite efficient and also reduces the bandwith used when returning data.

    Since Everlive does have a concept of a relationship, should this surely be a lot easier?
  7. chris
    chris avatar
    9 posts
    Member since:
    Dec 2008

    Posted 26 Jun 2013 Link to this post

    Hey Deyan

    Sorry for the delayed reply. 
    Yes as Simon mentioned being able to join/ access the related entities would be ideal. 
    Put in a scenario, the standard Order-->Products relationship where you have an order and can directly get the collection of products rather than having to manually go through each guid of the product from the order entity and retrieving that object, like a lazy load (my workaround.. which may not be the right way)

    That would be ace!



    Chris
  8. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 27 Jun 2013 Link to this post

    Hello guys,

    Thanks for the feedback.

    These are valid scenarios. Although in some cases you would not want to download all the related data but take it only if it's needed, it might be useful in other cases where the additional data will not be a big overhead to download.

    Thanks again for your time.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top
DevCraft banner