Challenge We faced that challenge in RatingWidget when we had to bind our rating widgets to a unique Int64 IDs based on the website’s page it’s being loaded from. Theoretically we could just store the URLs and query the URL column, but URLs can be very long and creating an index for text column with unknown length is very inefficient. So if you are working on any kind of dynamic widget development that should load different data based on the URL it’s loaded from, this post will save you tonnes of time. To simplify the problem, let’s divide it into two sub-challenges:
Read full article from How to Create a Unique 64bit Integer from String
No comments:
Post a Comment