On Mon, Mar 24, 2014 at 8:35 AM, Raghu rao <[email protected]> wrote:

> i am working on medical product. for one of  the requirement i have to
> store 3500 values in one object. it's working fine and able to
> persist(patientMedicalData) in the data store. but in the Dashboard it's
> showing  Datastore Write Operations is 22% for one request. how to avoid
> this in the datastore.
>


Are you storing each of the 3500 values in its own property? Are you
setting them all as indexable? If so, I'm not surprised you're incurring so
many datastore writes.

You can reduce your write costs by setting properties you don't need to
search on as unindexed. See
setUnindexedProperty<https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/PropertyContainer#setUnindexedProperty(java.lang.String,%20java.lang.Object)>.
Depending on your application design, it may be better to skip setting so
many properties: for properties you don't need to search on, create a JSON
object, add the properties to it, then serialize the JSON to a Text
property within the datastore.

If you do need to search on multiple properties, it may be better to move
your database to Cloud SQL:
https://developers.google.com/cloud-sql/docs/introduction



-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to