A simplified example:
{
productName: 'Lost Series 67 DVD',
availableFrom: '19/May/2011',
availableTo: '19/Sep/2011'
}
Browse storeFront / nowAvailableProducts basically checks to see if the current time and time is within reach. From - availableTo and emits a document.
I would like to force the view to be updated from 1 am every night, i.e. process / display all documents.
At first I had a simple python script planned through crontab that touched each document, which caused a new revision and view for updating, however, since couchdb is added, this is not very efficient - that is, loads of unnecessary I / O and disk space followed by compaction very resource intensive on all fronts.
The second solution was to click the definition of the view again using kuchapping, however, this meant that the view was unavailable (or partially unavailable) for several minutes, which was also unacceptable.
Are there any other solutions?
user53791
source
share