There are any reason why there are a HiLo series per collection instead a only one series used globally? Any performance reason?
Modify the conventions for generation HiLo IDs without collection part and incrementing HiLo regardless the collection.
First document in DB:
{
"Id": "1-A",
"GivenName": "John",
"FamilyName": "Doe",
"@metadata": {
"@collection": "Customers",
"Raven-Clr-Type": "MyProject.Entities.Customer, MyProject"
}
}
Second document in DB:
{
"Id": "2-A",
"OriginNumber": "+34111111111",
"DestinationNumber": "+34222222222",
"Duration": "00:12:34"
"@metadata": {
"@collection": "Calls",
"Raven-Clr-Type": "MyProject.Entities.Call, MyProject"
}
}
Differentes entities, differents collections, but sharing HiLo series and without collection name into the ID. Is this a good or bad idea? There are any reason to not doing this?