Re: [appengine-java] Re: many different Properties or Entity for name/value pairs

2011-11-06 Thread Gerald Tan
It's possible to make it searchable, you will need to store and update two 
entities. MyEntity will have a Properties to Values map, and you have a 
PropertiesEntity that has a MyEntity to Values map. 

class MyEntity {
   @Id Long id;
   @Serialized MapString,Object properties
}

class MyProperties {
   @Id String id;
   @Serialized MapLong,Object values
}

Searching by property will become very cheap and fast since you'll simply 
fetch the property entity. Updates and Writes will be more complex since 
you will need to write 2 entities, but there should only be a total of 4 
write ops. The other way is likely to be more expensive since you will use 
(2 + 2 * properties) write ops for each entity because each property will 
need to be indexed.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/gIqiaTmB3SIJ.
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.



Re: [appengine-java] Re: Number of writes per second limitation

2011-11-06 Thread de Witte
It is pseudo code. To be detailed, you have to store it as byte array 
inside a Blob.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/NMRkT87UhV0J.
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.