We have a Mongo database with 400,000 entries, each of which has a relatively short (<20 characters) header. We want to be able to quickly find substrings in these headers (fast enough to be able to use results in things like auto-fill bars). We are also looking for prefixes (does the name begin with a substring). What we can do?
source share