studioespresso / craft-scout

Craft Scout provides a simple solution for adding full-text search to your entries. Scout will automatically keep your search indexes in sync with your entries.
MIT License
81 stars 54 forks source link

Move all indexing/de-indexing work to queue #254

Closed janhenckens closed 2 years ago

janhenckens commented 2 years ago

This is the culmination of https://github.com/studioespresso/craft-scout/pull/248 and https://github.com/studioespresso/craft-scout/pull/171 by @aaronbushnell and @EpocSquadron.

Previous Scout would do the checking wether or not something would need to be indexed or de-indexed inline and then do the indexing in a job if you had the queue config setting enabled. (de-indexing was always done inline)

This changes that as it moves the checking to its own queue job, which has a significant impact on saving and editing.

You can try this by installing Scout like this:

composer require studioespresso/craft-scout dev-feature/queue

This deprecates the queue setting and will thus no longer give you the option to run Scout without the queue.

Happy to hear your thoughts and feedback!