1

のような機能 Google オートコンプリート

たとえば、人の名前というフィールドがあり、ユーザーが入力すると、ユーザーの入力に一致するすべてのオプションが表示されます。

私の最初の質問:

which one should maintain trie tree, frontend, backend or both?

2 番目の質問:

No matter front end or back end, when will trie tree be loaded?
If trie loaded on start, million of entities loaded take a lot time, and huge data in memory.
If trie loaded once user searched, each time user typed is a DB call and a Rest call, which also consumme a lot resources. And at first search, user will see no options till he did once, which is bad user experience.

アイデアがあれば、お待ちしております!

4

0 に答える 0