You can translate the question and the replies:

Parameter push-down issue

I am facing an issue when using the parameter in where condition of the top-level views. The query is hierarchical and has five levels. I created a parameter for the top-level view for a key element "key_id" that is used to join several tables. Then, I used this parameter key_id in the where clause of the top-level view as key_id = '1234'. In the second level of the hierarchy, there are four views where the corresponding key id is used in the join of these views. When I checked the delegated queries, it pushed this parameter down to 3 out of 4 views (in where clause) except for one view. Tried to refresh, rename, drop, and recreate this particular view to make sure it is not a refresh issue, but nothing helped. Please suggest how else I could debug and fix this issue.
04-02-2020 11:28:48 -0500

2 Answers

Join reordering helped fix the issue.
04-02-2020 21:23:55 -0500
Hi, Glad that you got it working. Generally, Denodo Platform Execution Engine performs [Automatic Simplification of Queries]( by applying optimization techniques such as join reordering, branch pruning, etc.. in order to increase the number of operations that are delegated to the source. Hence, in case I want to optimize the queries, I would check if the Automatic simplification of queries option is enabled in the “Administration > Server configuration > [Queries optimization](” menu of the Virtual DataPort Administration Tool. Hope this helps!
Denodo Team
05-02-2020 06:35:16 -0500
You must sign in to add an answer. If you do not have an account, you can register here