[google-appengine] Re: Disable index on String properties in low level datastore API (Java)

2017-04-27 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Tomas, 

Reducing indexes might not have a direct impact on spin-up time, but surely 
on long-term costs. 

Objectify and its main alternative Catatumbo are not supported by Google, 
but third-party products. You may consider contacting the creators of these 
frameworks for advice regarding their impact on start time.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c136a6f0-a274-4f6c-8fd3-15f07f280de7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Disable index on String properties in low level datastore API (Java)

2017-04-26 Thread Tomas
Okay, I found it...

https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/datastore/PropertyContainer#setUnindexedProperty(java.lang.String,%20java.lang.Object)

setUnindexedProperty

On Thursday, 27 April 2017 09:40:48 UTC+12, Tomas wrote:
>
> Hi there,
>
> I'm trying optimise my app and I save simple object as a entity with two 
> properties (key, String data) into datastore. I don't need to index the 
> 'data' property at all but I have notice ev ery write does this:
>
> PropertyValue
> gae/datastore/count 
> 1
> gae/datastore/entity_writes 
> 1
> gae/datastore/index_writes 
> 3
> gae/datastore/size 
> 1
> I wonder if it's possible (and also if it makes any sense) to disable 
> indexing of the 'data' property - as far as I understand, String fields are 
> indexed by default... (I didn't specified any indexes manually).
>
> Just a note - would like to avoid using objectify as I'm trying to strip 
> my app of majority of external dependencies to improve my instance spin-up 
> time (which now sits at 3 seconds...)
>
> Thanks for any advice!
>
>
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/64a8e40a-d44e-473e-b1bd-6897e62383c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.