Open ghost opened 5 years ago
What version/branch are you working with? We did a bit on locking in dev
@MatteoPiovanelli-Laser release 1.10x
If you are using MSSql, be aware that their implementation of ReadCommitted is slightly different by what has been implemented by every one else I am aware of. That is why we had to do a bunch of stuff to handle concurrency and locking. It's in dev now. It may be worth to try whatever you are doing with the dev branch, and see whether that fixes the issue you are seeing. If it does not, I think I would need a lot more detail on the issue itself to help you.
I can see why locking is necessary in some cases , specially in Cms frameworks . while reading
Repository.Table
the Table is locked. since the Isolation level isReadCommitted
. but what I didn't quiet understand is why the table is still locked even after the reading is completed . Converting to aList
should be enough to release the table ? if not what's the proper way to read using Orchard repositories and release the table after the reading is complete ?