You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fp = open("/tmp/full_state", "w")
with couchdb('XXXXX', 'XXXXXX', url='http://127.0.0.1:5984') as couch:
db = couch["declarations"]
with db.custom_result(include_docs=False, page_size=50000) as result:
for i, r in enumerate(result):
fp.write(r["id"] + "\n")
if i and i % 50000 == 0:
print(i)
fp.close()
To do so you need to provide full list of document ids in the couchdb (and there are no easy way to generate such list).
The text was updated successfully, but these errors were encountered: