Hi all and HAPPY NEW CODING YEAR 2012!!!!

I have a big doubt about Relation Indexes Entities updating cost.

At google billing page we can see updating Entity cost:

Existing Entity Put (per entity)         = 1 Write + 4 Writes per modified
indexed property value + 2 Writes per modified composite index value

So... I ´m developing social network engine activity oriented. The
shape of our data is user centric, so all user generated data is on
the same entity group "User".

User has an "UserFriendIndex" as a Relation Index Entity for store his
friends. Then, if one user does something (an activity), this activity
is populated by an Activity Relation Index.

//User Profile
class User {
//userProperties
};

//User Friends
class UserFriendIndex {
id
Key<User> parentUser
//indexed list
List<Key<User>> friendsKeyList
}

//User Activity
class Activity {
//activityProperties
}

//Activity Relation Indexes
class ActivityIndex {
id
Key<User> parentUser
//indexed date
Date date
//indexed list
List<Key<User>> activityReceiverUserKeyList
}

My question is... what happen (or better, what is the cost calculation
algorithm) if I make new friends and I want to update de ActivityIndex
entity with this new friends??

The same question is applicable for friend relation index.

Any idea?


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to