Hi man, here is the code that I´m testing:
static void Main(string args)
List<Int32> list = new List<Int32>();
for (int i = 0; i < 5; i++)
list.AsParallel().ForAll(item => X());
static void X()
Guid rowGuid = GuidGenerator.GenerateTimeBasedGuid();
//Here I get a cassandra client
//Insert cassandra row column name 'A' just for test
Because of parallel I just insert 2 or 3 items instead of 5.
This is a DateTime precision problem. I haven't looked at the problem that you are stating but, this would happen for one of two reasons.
Having the same DateTime would cause the column to overwrite it self if you were using this GUID as a Column Name.
I have looked at integrating DateTimePrecise into the GuidGenerate to give the precision a little boost.
But haven't had time, if this is something you want to explore, I will be happy to accept a pull request.
I implemented DateTimePrecise and used:
It´s worked. I will submit a Pull Request
Thanks for the pull request.
moved around some code from issues #28 and #30 and used DateTimePreci…
…se in other locations in the project
moved around some methods because they were on the wrong object