优化“select * from table”包含 2 亿条条目的查询 - DB2 数据库
我有简单的 select * from table query 但数据有大约 2 亿条数据条目。如何优化查询并仍然从表中获取全部数据? 数据库是db2。
I have simple
select * from table query but the data has ~200 million of dataentries. How can I optimize the query and still take the whole data from the table?
The database is db2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过设置当前度=任意来启用并行性。这将利用多个处理器来更快地满足查询。如果您有任何 where 子句搜索条件,索引可能会有所帮助。
Enable parallelism by setting the current degree = any. This will utilize multiple processors to satisfy the query faster. If you have any where clause search conditions, indexing may help.