在几秒钟内从SQL服务器检索数百万条记录 [英] retrieve millions record from SQL server in seconds

查看:74
本文介绍了在几秒钟内从SQL服务器检索数百万条记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从SQL Server数据库中检索超过2000万条记录。在现有项目中编写的查询需要10-15分钟才能生成输出。我想在几秒钟内完成它。

那么有没有办法或查询来实现这一点?或者我还需要在数据库中做什么,以便我能尽快获得所有记录。

I want to retrieve over 20 millions of record from SQL server database. Query which is written in existing project is taking 10-15 minutes to generate output. I want to achieve it in few seconds.
So is there any way or query to achieve that?? or what else i have to do in database so that i can get all the records as fast as possible.

推荐答案

这是不可能的!



请看看过去讨论 [ ^ ]


它可能会在这个问题中使用INDEXING

..

..

请参阅此链接我为您提供

http://www.tutorialspoint.com/ sql / sql-indexes.htm [ ^ ]

..

谢谢
It Might Be Possible please Use INDEXING in This problem
..
..
Refer This Link I get For you
http://www.tutorialspoint.com/sql/sql-indexes.htm[^]
..
Thanks


这篇关于在几秒钟内从SQL服务器检索数百万条记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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