Creating Rules is one of the many types of indexing operations that can be performed on your application. In other words, creating a Rule is one of the processes used to store data in your index that is used by our search engine.
Unlike a database table, an Algolia index is optimized to retrieve fast results for search operations. Therefore, it is expected that it can take some time to process a batch of indexing jobs in some cases, that could result in delays when creating your Rules.
A solution to mitigate this issue would be 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 items getting out of stock while your users are purchasing products. However, there might also be non time-sensitive updates such as description changes.
If you identify non time-sensitive indexing operations that could wait to be sent out of peak hours, it would be very impactful if you try scheduling those jobs.
Generally speaking, identifying which jobs need 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 via the Algolia Dashboard.
Finally, we would also advise reading the following guide article for more information on this topic: What impacts builds time?