Refactored search/session expiration to delete records in batches (#739)
- Avoid locking the tables for too long or creating a massive transaction in case the table has accumulated records for a longer time. * Reverted deletion of getExpiredQuery() and added command line parameters for specifying batch size and sleep time. * Don't sleep after last batch.
Showing
- module/VuFind/src/VuFind/Db/Table/Search.php 59 additions, 0 deletionsmodule/VuFind/src/VuFind/Db/Table/Search.php
- module/VuFind/src/VuFind/Db/Table/Session.php 59 additions, 0 deletionsmodule/VuFind/src/VuFind/Db/Table/Session.php
- module/VuFindConsole/src/VuFindConsole/Controller/UtilController.php 87 additions, 37 deletions...ndConsole/src/VuFindConsole/Controller/UtilController.php
Please register or sign in to comment