Back

How to increment data without fetching

  • 1
  • Databases
  • Functions
  • Web
  • Cloud
Pabitra
24 Mar, 2025, 02:34

Suppose i have build a roomAllocation system there are many rooms with specific storage capacity multiple user want store items at the sametime fetching & shorting which room has highest capacity then keep his items in that room then updates the rooms remaining capachity but during this fetching and shorting then updating another user can also get the data and there will me mismath in database so how to overcome this situation

TL;DR
Developers want to increment data without fetching to avoid database mismatches when multiple users are interacting with a roomAllocation system simultaneously. One solution is to use atomic operations or transactions to ensure data consistency and prevent conflicts.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more