如何更快地供访问,然后搜索更新超过100k的数据?
我有用于后台作业的控制台应用程序。 该应用程序会喜欢这样,
- 从数据库中获取可以调用表A(具有100K数据)的位置的数据(有100K数据)和可变的位置
- ,然后位置数据将在数据库中的另一个表中搜索,我们可以调用表B,并计算多少 然后,他们已经
- 更新数据库表中的数据计数foreach位置
- 后,所有完成的位置将更新数据库表C进行摘要。
我已经制作了.NET核心。所有顺序需要很长时间。 我在表A中的数据将增加超过500k。
也许还有另一种方法可以更快或使用其他技术
i have console app for background job.
the app will do like this,
- get data from database for the location we can call table A(have 100k data) and place to variable
- then foreach data of location will search in another table in database we can call table B, and counting how many data they have
- then update the count of data in database table A foreach location
- after all that is done will update database table c for the summary.
i already make in .net core. and its takes long time for all of the sequence.
and my data in table A will add more than 500k.
maybe there is another way to make faster, or using another tech
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论