The project is storing references to photo links stored in filestack. I want neither indexing nor encoding.
On Saturday, May 18, 2019 at 12:16:46 PM UTC+10, Harmit Rishi (Cloud Platform Support) wrote: > > Hi, > > The following documentation here > <https://cloud.google.com/appengine/docs/standard/python/datastore/typesandpropertyclasses#Text> > > provides an example for db.TextProperty() which may be of some use for you. > However before moving forward, would you be able to clarify your use case > of converting StringProperty() to TextProperty()? > > I ask this because indeed TextProperty value can be more than 1500 bytes > long. However, these values are not indexed and cannot be used in filters > or sort orders. Additionally, TextProperty values store text with text > encoding. Due to this, I am trying to determine if you require binary data. > If so, you may consider BlobProperty > <https://cloud.google.com/appengine/docs/standard/python/datastore/typesandpropertyclasses#BlobProperty> > . > > On Thursday, May 16, 2019 at 12:29:38 PM UTC-4, Heisenberg W wrote: >> >> >> I have a django project and I want to change property type of one of the >> models. My current model.py is: >> >> class Person(ndb.Model): >> property_one= ndb.StringProperty() >> property_two= ndb.StringProperty() >> >> and I want to change it to: >> >> class Person(ndb.Model): >> property_one= ndb.TextProperty() >> property_two= ndb.TextProperty() >> >> Both of my properties already have data and I cannot store more than 1500 >> bytes. So I want to convert from string to text without losing any data. >> How can I achieve this? >> > -- 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/0e0036aa-bea8-4b9b-bedd-98b99e39db50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
