1 MB limit in Google App Engine

Source: Internet
Author: User
In addition to the limit of '123' (no more than 1000 records can be returned for query), we found that gae has a limit of '1m.
I encountered a memoryerror when using memcache to cache a large list. The error message indicates that a cached item cannot exceed bytes. I ran to the group and asked. aral also encountered the same problem. in addition to memcache, Gae has a 1 m limitation in many places (the following is translated from the Aral blog ):
  1. A Data Structure cannot exceed 1 m; otherwise, a memoryerror is thrown.
  2. Response cannot return content larger than 1 MB; otherwise, an exception will be thrown: 'ttp response was too large'
  3. A model instance (equivalent to a database record) cannot exceed 1 MB; otherwise, a requesttoolarge exception will occur. (I have encountered this exception)

Prateek added a limit of 1 MB for the image API in the reply; Google may not wantProgramMember BTCodeDrag the server down. from.. Net GC running principle also understand that frequent creation of large objects with a short life cycle will affect program performance. in. net, the standard is 85000 bytes. objects larger than this standard are allocated in a dedicated heap and are regarded as the second generation. therefore, either the memory is not recycled, or the second generation of objects are frequently collected.

Welcome to talk with me about the development of Google App Engine. Welcome to my development of the first Gae app look: http://feedzshare.appspot.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.