AS400
System i – SQL COALESCE function in views has a deficiency
I was upgrade V5R3 –> V6R1 in last month,
我們踩到 IBM SQE 的 Bug, 開PMR弄了一個月,才由公司同事找到問題.
There isn’t a problem specifically with the COALESCE function,
But use COALESCE on columns in Views then used to join to a table in a query, will cause SQL performance proble.
This SQE deficiency should be fixed,
rewritting those views can resolve the performance problem .
Query the SYSVIEWS table to determine if they have other views which use COALESCE,
i.e.:
select system_view_schema,
system_view_name , view_definition
from qsys2/sysviews
where upper(view_definition) like ‘%COALESCE%’
1 COMMENT
你们的博客 认真地 激励出行。增加文章! 丹霞地貌 我参考你们的建议 出行博客。增长见识学习旅行小技巧。