coudy
coudy

Reputation: 13938

Google Drive API slower than the Documents List API

I've recently migrated our webapp from GDocs to GDrive and I've noticed that even the files.list call takes about 3x longer (~2.5 seconds) than the corresponding Docs call.

This doesn't seem to depend on the size of the response (in fact Docs' XML is larger than Drive's JSON in my test). I've also experienced the same behaviour when doing simple requests via Google's OAuth Playground, so I'd rule out any local connectivity or library issues.

Is there any way to speed up the API calls?

Upvotes: 2

Views: 1416

Answers (1)

Claudio Cherubino
Claudio Cherubino

Reputation: 15014

Check the Google Drive SDK documentation for performance tips:

https://developers.google.com/drive/performance

Tips include using gzip and partial response/update.

Upvotes: 1

Related Questions