amirpk / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 0 forks source link

Improving performance of TokenCollection #272

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use multiple gdata services
2. Load the TokenCollection for each of those services
3. Datastore might produces the following error:
Error: An error occurred for the API request datastore_v3.RunQuery().

What is the expected output? What do you see instead?
I expect that there is no error, for that purpose the TokenCollection
should be memcached.

What version of the product are you using?
2.0.1

Please provide any additional information below.
Running on App Engine.

I have attached a diff which adds memcache usage to the
save_auth_tokens/load_auth_tokens methods.

Original issue reported on code.google.com by mbac...@gmail.com on 5 Aug 2009 at 10:21

Attachments:

GoogleCodeExporter commented 9 years ago
Here is a new version which also caches the result of the load_auth_tokens 
method.

Original comment by mbac...@gmail.com on 5 Aug 2009 at 10:23

Attachments:

GoogleCodeExporter commented 9 years ago
Now caching pickled tokens to prevent token instance errors.

Original comment by mbac...@gmail.com on 5 Aug 2009 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jscud.w...@gmail.com on 19 Aug 2009 at 1:14