Update Clash!

Hi,
I have a system which works as follows.

There is a database field that I as the admin make changes to.
Then users through a query, systematically check every 3 seconds whether a change has been made.

However, there is an error point. If the user checks the field at the same time I amend the field there is a clash and this causes an error on the system.

Is there a way to change the system so that if the field is being amended a check by the users is not made?

Perhaps beforeQuery() can be used, but I am unsure after looking through the texts for this
Thanks,

This is a really strange behaviour. Could you share the error? Maybe add a demo as well so we can reproduce the problem.

Even thought issue a timer to query the data works, this will not scale.

The good way on doing that is by using the realtime api and to push updates to the user only when they occur.

That being said I don’t believe the error is related to the write operation. You may be hitting the maximum request per minutes on your client instead

Thanks for your reply.
Out of interest what is the max per minute?

I will also look into the real-time

You’ll find your answer here https://www.wix.com/velo/forum/tips-tutorials-examples/featured-content-about-backend-limitations