great Clement! @Vitaly : how can I use db.TextProperty in the example I gave ? because it was not obvious for me, i've tried a lot
On Wednesday, July 27, 2016 at 9:39:37 PM UTC+2, Vitaly Bogomolov wrote: > > 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 [email protected]. To post to this group, send email to [email protected]. 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/ad2e3cbe-f44f-4085-91da-f859f033ec5c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
