I'm using map to store data. The map has really big data. I want to find keys that has a prefix, the limit for number of result items is 50. I want to use fastest way for search, not iterate through whole map and check, since map is a structured key-value container already.
For example, if I have some pairs:
<"foo123", value>
<"foo234", value>
<"bar12", value>
<"foo456", value>
<"bar200", value>
if I search for "foo", it will suggest for me
foo123, foo234, foo456.