1.9.19 raised string property limit from 500 to 1500 chars

97 views
Skip to first unread message

Ryan Barrett

unread,
Apr 15, 2015, 11:09:02 AM4/15/15
to google-a...@googlegroups.com
looks like yesterday's 1.9.19 release raised the limit on string properties in the datastore from 500 to 1500 chars. awesome!

from google/appengine/api/datastore_types.py:

    _MAX_STRING_LENGTH = 1500

tested in https://shell-27.appspot.com/ :

    >>> from google.appengine.ext import db
    >>> class Foo(db.Expando):
      pass
    >>> key = Foo(long='x'*1490).put()
    >>> foo = Foo.get(key)
    >>> len(foo.long)
    1490

app engine team, might be worth adding this to the release notes and docs?

https://code.google.com/p/googleappengine/wiki/SdkReleaseNotes
https://cloud.google.com/appengine/docs/python/ndb/properties#types

pdknsk

unread,
Apr 15, 2015, 2:08:10 PM4/15/15
to google-a...@googlegroups.com

pdknsk

unread,
Apr 15, 2015, 2:10:18 PM4/15/15
to google-a...@googlegroups.com
The agnostic docs haven't been updated.

David Gay

unread,
Apr 15, 2015, 6:04:48 PM4/15/15
to google-a...@googlegroups.com


On Wednesday, April 15, 2015 at 8:09:02 AM UTC-7, Ryan Barrett wrote:
looks like yesterday's 1.9.19 release raised the limit on string properties in the datastore from 500 to 1500 chars. awesome!

1500 UTF-8 bytes actually (not to be confused with other ways of measuring string length).
Reply all
Reply to author
Forward
0 new messages