Hi, All.

> in Datastore, long strings (larger than 1500 bytes) cannot be indexed (
> https://cloud.google.com/datastore/docs/concepts/entities#text_string)
> The issue here is that, by default, Datastore tries to index every 
> property you give it, unless told otherwise.
>
> Here, it tries to index the property "result", which contains the large 
> JSON string.
>
> You can tell it to explicitly not index that property with:
>
>     entity = datastore.Entity(
>         key=key,
>         exclude_from_indexes=['description', 'result'])
>
> Hope that helps!
>

or use db.TextProperty. its size up to 1Mb, and not indexed too.

-- 
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/e6bde8df-313f-4cb5-bc7d-484eaa8d73b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to