XEdwin / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

ChangeListener fires too often #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Register a ChangeListener to a Database using 
Database.registerChangeListener(filter, seq, null, listener)
2. Modify documents in the database

What is the expected output? What do you see instead?

I expect that the listeners onChange() is invoked only for the objects that 
change. However, it appears that the listener is invoked for all documents that 
were modified at some time since seq, even if only one of them has changed.

What version of the product are you using? On what operating system?

I'm using jcouchdb 1.0.1-1 on MacOSX with CouchDB 1.1.0a771dd47-git (geocouch) 
on Ubuntu 10.4

Please provide any additional information below.

It might well be a problem of CouchDB itself (?).

BTW: It would be very useful if jcouchdb's Database class had methods to 
deregister a ChangeListener, and to update the seq parameter for existing 
ChangeListeners.

Original issue reported on code.google.com by wadenwic...@gmail.com on 9 Nov 2010 at 2:13

GoogleCodeExporter commented 9 years ago
OK, I assume it was not an issue in jcouchdb after all. It happened only on one 
couchdb instance. Others didn't show this behaviour. I guess this issue can be 
closed.

But a deregister methods would still be nice.

Original comment by wadenwic...@gmail.com on 10 Dec 2010 at 3:20