当我加载40000条记录时,如何在我的应用程序中更快地完成自动填充 [英] how to make autocomplete faster in my application when i am loading 40000 records

查看:113
本文介绍了当我加载40000条记录时,如何在我的应用程序中更快地完成自动填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述









在我的自动完成文本框中,我试图加载超过40000记录因此,当我使用jquery时已经晚了。我所做的一件事是从静态数据中读取,例如我将所有40000记录保存在一个数组中,我将通过传递前缀text来获取它们。所以我可以在那里如何做或给出静态数据的例子。







问候,

rahul

Hi,



In my auto complete textbox i am trying to load more than 40000 of records so it was late when iam used jquery also.one thing i am do is read from static data for example i keep all the 40000 records in an array i will get from among them by passing prefix text.so could any me in that how to do or give an example for static data.



Regards,
rahul

推荐答案

亲爱的Naveen



首先我假设您的40000记录是第一个名称或姓氏或任何数据列表,您希望在此列表中搜索并返回一些记录。我建议你使用Dictionary数据结构它真的无能为力,因为数据结构是巨大数据的重要组成部分。



因此,您可以使用数据和任务并行性来改进您的搜索算法遵循此解决方案您可以在.PL中找到有关并行性的许多有用链接:



任务并行库:2 n [ ^ ]

.NET中的并行编程 - 内部结构 [ ^ ]

并行的并行搜索算法

使用C#进行线程处理

并行排序算法



最好的问候。
Dear Naveen

First of all I assume your 40000 records is a First Name or Last Name or any list of data and you want search in this list and return a some records. I suggest to you use Dictionary data structure it is really impotent because, Data structure is a important part of huge data.

So, you can improve your search algorithms with Data and Task Parallelism follow of this solution you can find many useful links about parallelism in .net by TPL:

Task Parallel Library: 2 of n[^]
Parallel programming in .NET - Internals[^]
SEQUENTIAL PARALLEL SEARCH ALGORITHM
Threading in C#
Parallel Sort Algorithm

Best Regards.


这篇关于当我加载40000条记录时,如何在我的应用程序中更快地完成自动填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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