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

The parser parses some documents several times unnecessarily #171

Open
danielrichman opened this issue Feb 26, 2012 · 0 comments
Open

The parser parses some documents several times unnecessarily #171

danielrichman opened this issue Feb 26, 2012 · 0 comments

Comments

@danielrichman
Copy link
Member

I presume it's when the continuous _changes says that the doc has changed and hasn't been parsed (filter) several times while the parser is parsing that doc, and they get queued up. I.e., when there are quite a few quick receivers.

It's not really a problem, though it does load down couch & the parser a little more than necessary.

The easiest solution would be to switch off _changes' include_docs and grab the latest doc from couch every time, but that's a bit meh, adding another round trip to the database.

Could keep the _id and _rev of the last document we saved, and compare it to the one we're about to parse, and if the _id is the same but the _rev we just saved is newer, ignore? Provided it's "okay" to rev.split("-")[0] and compare that integer... also a bit meh.

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

No branches or pull requests

1 participant