Disable index on String properties in low level datastore API (Java)

35 views
Skip to first unread message

Tomas

unread,
Apr 26, 2017, 5:40:48 PM4/26/17
to Google App Engine
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!


Tomas

unread,
Apr 26, 2017, 9:56:13 PM4/26/17
to Google App Engine

George (Cloud Platform Support)

unread,
Apr 27, 2017, 2:33:08 PM4/27/17
to 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.
Reply all
Reply to author
Forward
0 new messages