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

ignore 'compacted' events and others #16

Open
regnete opened this issue Apr 28, 2016 · 0 comments
Open

ignore 'compacted' events and others #16

regnete opened this issue Apr 28, 2016 · 0 comments

Comments

@regnete
Copy link

regnete commented Apr 28, 2016

https://github.com/jo/couch-daemon/blob/master/lib/dbs.js#L77 should be changed:

        if (change.type === 'deleted' || change.type === 'created')
          push(null, _.extend({ stream: 'dbs' }, change));

The change avoids unneccesary pushes.

We are running into serious problems with the following scenario: When a user logs in the first time, we create a user specific couch db and insert some design documents to that db. this is realized via a seperate node process with nano.

In this case, the couch-daemon (we use couchmagick) gets a massive bulk of events (creation of new db, updates for several design documents, etc.). I don't know why, but then the new db is not watched by couch-daemon, if if the dbs name is covered by the whitelist (/.*/ on our case).

Applying the above patch avoids the problem. I created a pull request: #17

@regnete regnete changed the title ignore 'compacted' events ignore 'compacted' events and others Apr 28, 2016
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