The 1MB hard limit in Google App Engine
There isn't much documentation on what exactly is affected by the 1MB limit in Google App Engine so here's my effort at documenting this based on my empirical findings:
- You cannot have a data structure (e.g., variable) larger than 1MB in size or you'll get a MemoryError.
- You cannot return a response that is larger than 1MB in size or you'll get an error similar to: HTTP response was too large: 3457738. The limit is: 1048576. (I got that error when trying to circumvent the 1MB MemoryError issue by returning a generator for my HttpResponse).
- Model instances cannot be larger than 1MB in size or you'll get a RequestTooLarge error.