Ask HN: Best way to store integer array/list per key
What is the best data-store or technique if we were to store millions of integer lists identified by a unique key. The following functions are intended on such lists:
1. Read for a given key 2. Add items to the end of the list against a key 3. Read portions of this list, from-to index 4. Rarely, remove items from the list
The data size is estimated to be roughly 100-million keys, with average of 2-3 thousand integer-list per key.
The key itself is an integer.
8 comments
[ 2.7 ms ] story [ 26.8 ms ] thread32-bit for now. I don't anticipate them going to 64-bit so soon.
Considering you are storing only millions of rows I figured a mysql implementation using blobs should do the trick .. but it all depends on the load you expect .. worth playing around with the idea I think.