Skip to main content
Question

Multiple Parallel (concurrent) operations

  • April 29, 2025
  • 4 replies
  • 111 views
  • Translate All

Forum|alt.badge.img
  • I have OrderQty, totalConsumedQty, and MaximumOrderQty.

  • Orders are being placed in parallel.

  • Each order reads the current totalConsumedQty, adds its OrderQty, and checks if it exceeds MaximumOrderQty.

  • When multiple orders are placed at exactly the same time, they all see the same original value of totalConsumedQty, and each thinks it’s safe to place the order.

  • Result: totalConsumedQty is exceeded because updates are not aware of each other.

  • Updating totalConsumedQty is happens while Saving, It is required

4 replies

darylbowman
Captain II
Forum|alt.badge.img+17
  1. How / where is TotalConsumedQty being stored?
  2. Does the Ordering need to be concurrent?
Translate

Forum|alt.badge.img

Hi ​@darylbowman ,

Thank you for replying.

1.  TotalConsumedQty  is being store in SOLine Table

2. Yes the ordering need to be concurrent

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

Could you post some of your code?

Translate

Chris Hackett
Community Manager
Forum|alt.badge.img

Hi ​@anupusefulbi were you able to find a solution? Thank you!

Translate