Documents can be added and removed any times. I need to remove some documents for historic storage.
Is it possible to select AND delete in the same request ?
- Select&delete data
- Store data somewhere else.
- Send commit.
Right now, I do :
- Select data with criteria + stats=true&stats.field=dateField
- Store data somewhere else.
- Query delete (with same criteria but using the getMax() value of dateField to not delete newer documents matching the request)