GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing googleapis.github.io — Performance Tips google-api-python-clientPerformance TipsThis document covers techniques you can use to improve the performance of your application. The documentation for the specific API you are using should have a similar page with more detail on some of these topics. For example, see the Performance Tips page for the Google Drive API. About gzipThis client library requests gzip compression for all API responses and unzips the data for you. Although this requires additional CPU time to uncompress the results, the tradeoff with network costs usually makes it worthwhile. Partial response (fields parameter)By default, the server sends back the full representation of a resource after processing requests. For better performance, you can ask the server to send only the fields you really need and get a partial response instead. To request a partial response, add the standard In the following code snippet, the Note how commas are used to delimit the desired fields, and slashes are used to indicate fields that are contained in parent fields. There are other formatting options for the Partial update (patch)If the API you are calling supports patch, you can avoid sending unnecessary data when modifying resources. For these APIs, you can call the For more information about patch semantics, see the “Performance Tips” page in the documentation for the API you are using. CacheYou should turn on caching at the To enable caching, pass in a cache implementation to the On App Engine you can use memcache as a cache object: BatchIf you are sending many small requests you may benefit from batching, which allows those requests to be bundled into a single HTTP request.
This site is open source. Improve this page.
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |