I have a set of data which has a hierarchy of 3 levels. Each level has a name.
I am looking at combining all of these names into a single string then creating a numeric hash that can be used as a hash key for a service fabric stateful service.
I have seen lots online about finding data with keys but I am not sure how to actually create them in an efficient way.
Ideally I would like a hash that is quick and easy to generate in SQL Server 2017 and C#.
Can anyone point me in the right direction, please?
Paul
The SF team advice is to use the FNV-1 hashing algorithm for this.
A C# implementation in this example here:
Remove the
ToUpperInvariant
to make it case sensitive.