Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixtures appear to be subject to database compaction #7

Open
shackpank opened this issue Jun 23, 2016 · 0 comments
Open

Fixtures appear to be subject to database compaction #7

shackpank opened this issue Jun 23, 2016 · 0 comments

Comments

@shackpank
Copy link
Member

CouchDB has a "compaction" process, which will delete old revisions of documents past a configurable maximum, by default 1000. Normally this job is manually run, but SaaS providers (such as cloudant) schedule it automatically, which can result in fixtures mysteriously disappearing if you have enough tests or if you refixture them frequently enough.

On cloudant this can be worked around by increasing the maximum:

curl -X PUT -d "a-really-big-number" https://api-user:[email protected]/database/_revs_limit

...but I'm wondering if a change to how the documents are stored could exempt them from being candidates for deletion during compaction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant