Closed holly-hacker closed 1 year ago
Hi! Since I am now working on my thesis I don't have time neccessary to work on SliccDB. I will look into it in my free time, but unfortunately I don't have one recently... Please feel free to create a pull request with a fix tho!
I removed all concurrency from these methods. now it should not cause this issue.
In a tight loop where you both query and insert nodes (common for "upsert" scenarios), the parallel processing of the
.Labels(string)
method may cause exceptions. I believe this is because it usesallEntities.AsParallel().ForAll
to iterate over all entities and it then concurrently puts them in a non-concurrent hashset:DatabaseConnectionExceptions.cs
The following sample reproduces the error:
... which returns the following output for me:
I am using the latest commit on the master branch, which currently is 9b6972e682b033f6f4daa901106863df7221809f.