Mark Herrmann Posted April 1, 2020 Share Posted April 1, 2020 Hi there, the information designer can produce queries with very high cost unless manually optimized (see example below). I'm not a big fan of edited SQL since it becomes intransparent to users what's happening and editing or maintaining it is error prone. Hence I was wondering if it is possible to make use of hints in Oracle queries. I could not find anything about it (only for other products). Does anyone know how to get optimized queries out of information designer, e.g. by using hints (but any trick other than creating a view for every use case is fine for me as well) Thanks, Mark Example Information Designer Query (Cost: 14,329,590): WHERE ((Y1."ID" = 'A24.1' AND Y2."NAME" = 'XYZ') OR (Y1."ID" = 'A24.10' AND Y2."NAME" = 'XYZ') OR (Y1."ID" = 'A24.11' AND Y2."NAME" = 'XYZ')) Example manual query (Cost: 2,398): WHERE ((Y1."ID" IN ('A24.1', 'A24.10', 'A24.11') AND (Y2."NAME" = 'XYZ')) Link to comment Share on other sites More sharing options...
Shashank Gurnalkar Posted April 1, 2020 Share Posted April 1, 2020 You can use Filters in the Information Link as shown below. The query is generated similar to what you have shown in the example. Link to comment Share on other sites More sharing options...
Mark Herrmann Posted April 15, 2020 Author Share Posted April 15, 2020 Thanks for your input! But this could not be parameterized but would be a hard coded filter, right I'm looking for a solution where those filters are dynamic as in <conditions>. Any idea on that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now