Script活动与查找活动在ADF上的比较

huangapple go评论55阅读模式
英文:

Script activity vs lookup activity on ADF

问题

Script活动相对于Lookup有哪些优点?我知道Lookup存在一些限制,比如只能返回不超过1 MB的数据。在价格/性能/功能方面,Script活动是否有任何改进?我在网上找不到太多参考资料。

顺便说一下,Lookup 可以 用于运行不仅仅是 SELECT,还包括 UPDATEDELETETRUNCATE 等操作,尽管看起来有点像一种 hack。

英文:

Is there a benefit of using Script activity over Lookup? I know that there are limits with Lookup like being able to return no more than 1 MB of data. Does Script activity have any improvements in terms of price/performance/feature? I could not find many references online.

BTW, Lookup can be used to run not only SELECT, but UPDATE, DELETE, TRUNCATE etc. too, albeit seeming like a hack.

答案1

得分: 2

Script活动与查找活动在ADF上的比较

来自MS博客

  • 查找活动不会阻止修改操作,但不建议使用查找活动来修改数据。

** 对于某些连接器,查找活动可以成功执行多个查询,但无法检索完整结果。

注意:返回结果集时要小心,因为活动输出限制为5000行/2MB大小。如果通过SQL脚本记录(打印语句),您可以通过选择用于记录的存储帐户来解决限制问题。

有关更多详细信息,请参阅脚本活动文档

英文:

Script活动与查找活动在ADF上的比较

From the MS blog :

  • Lookup activity does not block modify operations, but it is not recommended to use lookup activity to modify data.

** Multiple queries can be executed successfully in lookup activity for some connectors but cannot retrieve full result.

Note: Be careful when returning result sets, since the activity output is limited to 5000 row/ 2MB size. If you are logging through your SQL script (Print statements), you can work around the limit by choosing your Storage account for logging.

For more details, refer script activity documentation.

huangapple
  • 本文由 发表于 2023年6月6日 12:35:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76411474.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定