2

According to https://cloud.google.com/appengine/docs/python/datastore/typesandpropertyclasses?hl=en I should use a Blob type but I don't see such type in gcloud-node. Is it something yet to be implemented? How can I save long text in datastore using gcloud-node?

Zachary Newman
  • 20,014
  • 4
  • 39
  • 37
eloone
  • 4,248
  • 2
  • 32
  • 35

1 Answers1

3

If a property is not indexed, you can store up to 1 MB. (Reference)

See this example for how to disable indexing explicitly.

Have you tried saving data and received an error?

Stephen
  • 5,710
  • 1
  • 24
  • 32
  • Yes, I am saving a json object with a property that contains text that is more than 1500 bytes, and I received a 400 response saying the property can't be more than 1500 bytes. I am using the standard method to save data in a dataset from gcloud-node. – eloone Sep 03 '15 at 07:54
  • Okay, let me know what happens if you mimick the example that turns off indexing. – Stephen Sep 03 '15 at 08:03
  • I tried with this method it works, thank you very much! But it means that you need to save your object as an array of objects with one object per field, and the property 'excludeFromIndexes' set to true for the field that is more than 1500 bytes. – eloone Sep 04 '15 at 07:58
  • You should accept @Stephen 's answer because it works perfectly – Eldelshell Jun 09 '16 at 17:46