I have interlinked two documents say User profile(main document) with his friends list(sub document).
User_01:
{
“name”:“jack”,
“age”:23,
“friends_list”:["friend_01,…]} and
friend_01:{…}.
Now, I have to retrieve data using GET METHOD(JAVA)…I tried using GETBULK but dont know how to use the equivalent for:
Thanks for your reply. But am new to map/reduce function. If i insert my friends list in same document(it will be an performance issue)? bcoz my friends list will be keep on growing. So, i thought keeping it in separate document will be good…Any suggestions pls.
Thank you for your valuable comment. Now, i can able to retrieve Friends list of a user(You gave clear idea) . I want to know
Whether I can be able to retrieve friends list of two particular users(Sending parameter(username) to map function from sdk)
Or I have to write two views for each user to get their friends list.
Am trying to find mutual friends between two users. So I have to get friendslist of two users and have to compare it. Any Suggestions or idea???