• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cdb_Update for numeric and calculated data
#2
Using the existing APIs would be destructive if multiple people were hitting the same value. The last person to write using cdb_update would win. Sync is a little different. Based on your params, the first or the last could win. Neither would be suitable for this scenario.

I think there are two ways we could solve this.

Improve cdb_update or make a new API for math operations
Store the updates as new records (like a ledger) and do the math when you want to know the result.

Both methods are useful to have. It depends on how you want to store your data in this scenario. We will toss #1 around in the studio and see what we come up with.
  Reply


Messages In This Thread
RE: cdb_Update for numeric and calculated data - by mark_talluto - 02-20-2020, 05:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)