Google Groups hosts discussion forums where you can find information like 
service status updates, release notes and high-level discussions on the 
state of the platform. For coding and programming assistance, you're better 
served in dedicated forums such as Stack Overflow, where experienced 
programmers are within reach and ready to help. 

Thank you for understanding.

On Monday, May 20, 2019 at 3:37:53 PM UTC-4, Heisenberg W wrote:

> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2df25ca5-bbd2-47f1-97b1-bface67f73b4%40googlegroups.com.
  • [google-appe... Heisenberg W
    • [google... 'Harmit Rishi (Cloud Platform Support)' via Google App Engine
      • [go... Heisenberg W
        • ... 'Tiago (Google Cloud Platform Support)' via Google App Engine
    • [google... Vitaly Bogomolov

Reply via email to