salimoha / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Add a caching system for Docs #439

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What service (Calendar, Docs, Picasa) should be enhanced?

Docs

What is the enhancement?

I have 15784 documents and 302362 MB of documents. 
I would really like to use the command :

google docs edit" Shopping list --editor vim

But it is 3m45 to enter in vim. Can you add a caching system?

Original issue reported on code.google.com by j...@px.io on 19 Oct 2011 at 7:55

GoogleCodeExporter commented 9 years ago
We'd like to keep googlecl simple, so I'm not a fan of the idea of adding the 
complexity of a cache.  But it sucks that it's taking 3m45s for you.  Perhaps 
googlecl is doing something inefficient like loading the entire list of docs, 
rather than using some API call to get the document directly.  If so, it may be 
possible to improve performance for users like you without adding caching.

Original comment by jh...@google.com on 20 Oct 2011 at 3:01

GoogleCodeExporter commented 9 years ago
A solution to "optimize" the query is to specify a directory.

google docs edit "TODO" --editor vim --folder "Notes"

Original comment by j...@px.io on 20 Oct 2011 at 7:24

GoogleCodeExporter commented 9 years ago
By using a directory already decrease the number of doc to parse.

Original comment by j...@px.io on 20 Oct 2011 at 7:28