(Note: This is a self-answering question)
I noticed orderBy
folder,title
is very slow, what should I do ?
$ time curl 'https://content.googleapis.com/drive/v2/files?maxResults=10&orderBy=folder%2Ctitle&q=%27root%27%20in%20parents%20and%20trashed%3Dfalse&key=XXX' --compressed -H 'Authorization: Bearer XXX' -H 'X-Origin: https://explorer.apis.google.com' -H 'If-None-Match: "XXX"'
It requires almost ~11 seconds to complete:
real 0m11.356s
user 0m0.008s
sys 0m0.016s
You can test in API Explorer. The query is:
- maxResults: 10
- ordeBy: folder,title
- q: 'root' in parents and trashed=false