Dealing with stale views

17 views
Skip to first unread message

Dump Hole

unread,
Feb 27, 2015, 4:58:17 PM2/27/15
to couc...@googlegroups.com
What is your advice on dealing with stale views?  I have been passing stale=false, and this degrades the performance.  Is there a way to force Couchbase to update the index on update/create, rather than get?  My app is GET heavy, so it's better to do it on insert/update.

Matt Ingenthron

unread,
Feb 27, 2015, 10:00:21 PM2/27/15
to couc...@googlegroups.com
If you publish the view from dev mode, it’ll automatically be updated in background regularly.  The frequency is tune-able if you modify the design document directly through REST.  I believe the frequency is 5sec by default but can be tuned down.

The other approach is update_after.

Would either of those help?
Reply all
Reply to author
Forward
0 new messages