startkey : "contact",
endkey : "contact",
descending : true
});
I want to use live queries and on dbChange, I will update my associated UI list. How can I do this?
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/e8a3bf27-c58c-4f56-b777-d138f5f44faf%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
So, If I write logic of refreshing list in window.dbChanged(), it will refresh list thousand times.
Can you tell me is there any flag which tells that synchronization is now done. So, I can refresh list there.
On Apr 14, 2014, at 11:04 AM, Ami Kapadia <ami....@gmail.com> wrote:So, If I write logic of refreshing list in window.dbChanged(), it will refresh list thousand times.It’s better to put in a delay so you don’t refresh the list more often than once or twice a second.
Can you tell me is there any flag which tells that synchronization is now done. So, I can refresh list there.Are you sure you want to wait that long? If syncing takes a while, your list would be out of date with the database.
—Jens
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/96B0E4F3-99DD-440B-883C-704CA86ECE7E%40couchbase.com.