Search code examples
javagoogle-app-engineobjectify

Max length of String stored with App Engine?


When storing String fields with App Engine:

  • What is the maximum length() of the String that App Engine datastore can handle?
  • Also if using Objectify, is this max length the same or Objectify does some processing that affect this max length?

Solution

  • Objectify will automatically convert Strings of more than 500 characters to native Text storage. Be careful if you are indexing strings; Text objects are not indexed so the String > 500 chars will be unindexed.