Database Reference
In-Depth Information
This technique holds good to balance the write load. But when it comes to reading the
data, you might get confused about which item to retrieve. So, to cater to this, you can de-
cide upon a random number strategy based on the data available. For example, you can
calculate the random number to be appended to a song ID based on the hash calculation of
the song's name or the singer's name in such a way that when you want to retrieve that
item, you can recalculate the number to be appended and search with that hash key.
One thing we have to make note of is that by doing this, we are creating multiple copies of
the same data, and so if you are going to use it, you should also consider the efforts re-
quired to maintain these copies in sync.
Search WWH ::




Custom Search