mattporritt / moodle-search_elastic

An Elasticsearch engine plugin for Moodle's Global Search
https://moodle.org/plugins/search_elastic
GNU General Public License v3.0
16 stars 13 forks source link

Move item deletion to ad-hoc task #49

Open mattporritt opened 5 years ago

mattporritt commented 5 years ago

Currently in engine::compile_results() items that return with \core_search\manager::ACCESS_DELETED are deleted from the elasticsearch index synchronously. This is a performance hit and doesn't need to be this way.

Instead lets refactor it to be an adhoc task