LiveQuery does not update on boundingBox change (as well as other options)

21 views
Skip to first unread message

Andrew Tokarev

unread,
Feb 12, 2015, 6:12:43 AM2/12/15
to mobile-c...@googlegroups.com
Hi Guys,

We are building geo application with MapView and Couchbase Lite. 
And we've built our own Live DataSource for updating points on the map which is based on abilities of LiveQuery, it works pretty impressive.

But, we've found that LiveQuery does not watch changes of boundingBox (and other options). 
It only observes database and view changes. 

And on the MapView bounding box change (user scrolls map and see other points) we have to restart query (stop, start), and it works.

So, is there any chance in future releases to have a method like observeQueryOptions (which will include observing of query's options) at LiveQuery? It might be also necessary for keys, and full-text search, others. 

P.S. having a restart could also be helpful. 

P.P.S. recreating query just to make change in boundingBox is not the efficient case

Thanks.

Jens Alfke

unread,
Feb 12, 2015, 1:53:51 PM2/12/15
to mobile-c...@googlegroups.com

On Feb 12, 2015, at 3:12 AM, Andrew Tokarev <andy.t...@gmail.com> wrote:

But, we've found that LiveQuery does not watch changes of boundingBox (and other options). 
It only observes database and view changes. 

Currently, you’re not supposed to change the options of a LiveQuery after it starts. You’d need to create a new query. But this is a reasonable thing to do; I’ve filed it as issue #596.

—Jens
Reply all
Reply to author
Forward
0 new messages