Allow temporarily skipping indexing / improve process#create load time x 2
Closes #1185 (closed)
Temporarily skip enqueue jobs to reindex workflows/tasks:
- jobs enqueued by searchkick directly (callbacks)
- jobs explicitely enqueued by us (
def reindex_with_tasks
et al)
Used when creating a new process this almost halves processing time.
Note: The time saving would be far higher if we not already pushed reindexing into jobs (and processed the async). But enqueueing a lot of jobs does also take substantial time.