How to reflect data immediately after registration?

Is there a best practice to have data appear in the listing immediately after it is registered?

We are using algolia for our listing pages and are using saveObjects(xx).wait() to register the data.

However, this takes more than 1s to be indexed, which increases the waiting time for the user.

I would like to solve this problem.


It’s a fact that indexing in Algolia takes some seconds and we just have to wait. However, Algolia can be relied on to eventually perform the indexing if you have posted it correctly.

So sometimes with our app we ‘fake it’ - just insert the information as you expect it to be returned by Algolia.

Is this a best practice? maybe :grinning:

1 Like