如何让搜索变得更容易 [英] how do make searching make easier

查看:116
本文介绍了如何让搜索变得更容易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的数据库中我有7L记录,在我的网页上我有自动完成文本框需要花费很多时间从数据库中获取记录,plz建议我搜索更容易

in my data base i've 7L records,in my web page i have auto complete text box it take to much time to get the records from database, plz suggest me searching make easier

推荐答案

如果我正确理解了这个问题,你可以

- 只有当你在自动完成文本框中有足够的字符时才开始建议值(3也许?)

- 确保你有适当的索引,有助于获取数据

- 如果数据是静态的,利用缓存

- 利用排名或类似例如,仅显示列表中的50个项目。当然,如果用户需要,您可以选择显示更多结果。
If I understood the question correctly, you could
- start suggesting values only when you have enough characters in the auto complete text box (3 perhaps?)
- make sure that you have proper indexing in place that helps to fetch the data
- if the data is static, utilize caching
- utilize ranking or similar and show for example only to 50 items in the list in the beginning. Of course you can have an option to show more results if the user wants so.


这篇关于如何让搜索变得更容易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆