Views through Couchbase Sync

Hi all,

we installed a few prdoction views through the sync gateway. Everything works fine. The only thing that bothers a bit, is that the views are not necessarily reflecting the current state.

For example, I have to query twice time to get the current state (using the simple curl example).
Any ideas?

Best
Ulf

Views,

Re-indexing of new data is not instance. by default views in CB re-index new changes every 5000 updates AND 5 Seconds, these setting can be changed. You can ask the view to re-calculate before giving you a result via &stale=false in your query , but there is a cost (i.e. its going to be slower.)

Oh, that’s good to know thanks!