为什么我们需要在 ssis 中的合并连接转换之前使用排序转换 [英] why we need to use sort transformation before merge join transformation in ssis

查看:26
本文介绍了为什么我们需要在 ssis 中的合并连接转换之前使用排序转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我为什么我们在使用合并组件或合并连接组件之前要对所有记录进行排序?其背后的确切原因是什么?

Can any one please tell me why we are sorting all the records before using merge component or merge join component? What is the Exact reason behind it?

推荐答案

由于其内部工作方式,合并需要排序输入 - 同时通过两个输入就足以产生合并排序输出.请参阅 SSIS 合并转换Merge Join Transformation 了解更多信息.

A merge requires sorted inputs because of how it works internally - a single pass through both inputs at the same time is sufficient to produce a merged sorted output. See the MSDN documentation for the SSIS Merge Transformation and Merge Join Transformation for a little more info.

如果您不想要或不需要排序输出,您可以查看 Union All Transformation 只是将它的输入组合成一个输出而不进行任何排序.

If you don't want or need sorted output you could look at the Union All Transformation that just combines it's inputs into one output without any sorting.

问候,

里斯

这篇关于为什么我们需要在 ssis 中的合并连接转换之前使用排序转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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