Sandeep12/01/2022, 2:11 PM
wey12/06/2022, 6:19 AM
1. Suppose I do a parallel write and when I try to get the max rank, there is a possibility for the same max rank to be returned when things run in parallel. In such a case, two parallel write requests with the max rank will be executed. This doesn’t create two different edges but overrides one another. How should it be handled?wey: the slightly later write will override the early one
2. If there is a better approach to handle this, kindly let me know.wey: there are indeed no better approaches before nebulagraph supports transactions(in the future), while for now, I think we could generate a random factor as an edge property to verify from the client side that if it’s written as expected, i.e. if the property was overridden, then the client would know in some level by reading after write, again, it cannot guarantee all the rare race cases, either.
Sandeep12/06/2022, 7:07 AM