You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The consumption logic could be made even simpler and at the same time more performant (still to be proved) cuz there would be fewer round trips, fewer locks.
The first select returns an array of 100 message ids. No transaction, no pessimistic lock.
Then we walk through the array and try to catch one free message. We can do it with an `UPDATE ... SET deliveryId=ourUniqueId WHERE id=currentMessageId AND deliveryId IS NULL.
The consumption logic could be made even simpler and at the same time more performant (still to be proved) cuz there would be fewer round trips, fewer locks.
The text was updated successfully, but these errors were encountered: