Creating your Rules are one of the many types of indexing operation. In other words, creating a Rule is one of the processes to store data that is used by our search engine.
Unlike a database table, an index is optimized for search operations. Because of this reason, there are cases where it can take some time to process a batch of indexing jobs, and therefore, there could be a delay when creating your Rules.
A proven solution to mitigate this issue is to optimize your indexing strategy. During a day, there can be many different kinds of indexing jobs that are being sent, for example:
- Creating or deleting products
- Stock is updated
- Description is updated
- Price is updated
- Creating Rules
During peak traffic hours, there will be time-sensitive updates such as stock changes while your users are purchasing products. However, there might also be non time-sensitive updates such as description changes.
If there is a significant load of indexing operations that could wait to be sent out of peak hours, it is very convenient to try scheduling those jobs.
Generally speaking, identifying which jobs needs to be prioritized and sending the non-priority ones out of peak hours should help to process the time-sensitive updates faster. This should also be helpful in mitigating delays when creating Rules.
Finally, we also advise to look at the following guide article for more information on this topic: What impacts builds time?