Storing data from custom state only after certain time or action

In my bubble app i have a custom state (number). Than i have two icons (+,-) which set state the value of custom state +1 or -1. And i need to store this custom state value to database but not imidiately because making so many changes to a thing will not have a good performance. Insted I only want to save it after a certain time this value has not been changed. Is there any way to this in bubble or is there any other better aproach to this problem?
Snímek obrazovky 2025-03-20 190115


Not sure exactly what the app is doing, but what about making a database field and auto-binding the value so it just changes as the user changes it, then when they leave or go on to something else, it’ll just stay as they left it?