couchbase - Cleaning obsolete index data -
i have view works data of current day. aggregates current day , ignores older data. means @ d1 no longer need index data d-1.
i need keep index clean of older data because volume have deal polute index , slow down view operations.
is there way configure couchbase clean index ?
the other solution see remove index everyday @ midnight contains data current day, looks bit brutal.
thanks in advance feedback :)
if understand correctly, want rebuild index, not contain outdated data...
couchbase has notion of view fragmentation (how outdated view compare underlying data). can configure fragmentation settings in couchbase console. go settings , navigate auto-compaction tab.
you can see there default views have 30% fragmentation. can reduce (min 2%) view automatically rebuild once reaches threshold.
i recommend reading compaction magic in couchbase server 2.0
Comments
Post a Comment