Performance was bad because a paged retrieve would also load and execute jobs for entities which are not on the requested page.
Two things happened:
Entity#skipJob()
. Jobs would never be skipped, even if an entity had entity status IGNORE
. This was a one-liner.Unit test should be sufficient.
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
For further good practices have a look at our review guidelines.