couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Metson <simonmet...@googlemail.com>
Subject Re: VERY Basic Question
Date Wed, 15 Feb 2012 16:42:41 GMT
Hi 


On Wednesday, 15 February 2012 at 15:12, Simon Metson wrote:

> > > 
> > 
> > 
> > 
> > 
> 
> That's currently not done easily. You'd need to hit _all_docs with a limit parameter
(e.g. http://localhost:5984/demo/_all_docs?limit=100) then push the result back into your
subset database. Give me some time and I'll knock up a python script to do it...
> 
> 

Quickly hacked up script:



https://github.com/drsm79/couch-generics/blob/master/scripts/fetch_subset.py

Should have no dependencies other than python2.6. Not extensively tested, patches welcome
etc.
Cheers
Simon

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message