Automatically deleting older documents

With time-based indexes, deleting the older documents becomes easier. We could just drop older indexes rather than delete individual documents. If we were using monthly indexes and wanted to enforce six-month retention of data, we could delete all indexes older than 6 months. This may be set up as a scheduled job to look for and delete older indexes.

As we have seen in this section, setting up index-per-timeframe has obvious advantages when we are dealing with time-series data. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.45.153