title: Laravel + javascript application: delay in ability to re-edit data entries
body: <p>We are currently facing an issue with data re-edits in an application based on laravel 6 and javascript for front.</p>
  <p>The application allows a logged in user to edit data entries previously added from him/her or other users. The workflow goes like this: a user edits a data-entry and saves it ( there are two steps: getting in edit mode and exiting by saving the edited data). While a user is in edit mode, the data-entry is &quot;locked&quot; and no other user can edit it while it is locked. After save, the data-entry &quot;opens&quot; again. The locking mechanism works on the level of the database: there is a field that is null while no one edits a data-entry and it gets the user id as a value when someone gets in edit mode. After saving the new changes, the field becomes empty again.</p>
  <p>For some reason it seems that some times the locking mechanism takes to much time to unlock, although the user has pressed save and has exited the edit mode. This happens only on the client side where multiple users use the application. When we use the same server and application, from our side, nothing similar happens; the locking and unlocking works correctly.</p>
  <p>Are there any possible usual causes that could create this issue? Could this perhaps be due to multiple queries from the client network and something there takes more time than it should, but when we do it from our side, we don't face such an issue?</p>
  <p>Is there some plugin we could use to check what may cause this issue, perhaps the queries and if they hang or get in some sort of execution line that takes way to much time to finish?</p>
  <p>Thank you.</p>