Fast autofill from in-memory collection (.NET)

I have this text input field on a web page. The types of users in the names of the products to purchase. I would like to provide a drop-down menu with possible names based on the letters entered so far.

The question is how to implement a server search (ASP.NET MVC). I will probably load a whole collection of element names (there are more than 100,000) in a static variable when the application starts. How to implement an efficient search for names starting with a given one or more characters?

TIA

+3
source share
2 answers

, , .

, .

+2

, , ( 100 000) . , ?

(!) . db "top 101". .

+1

Source: https://habr.com/ru/post/1773672/


All Articles