This portal is to open public enhancement requests for IBM Sterling products and services. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
See this idea on ideas.ibm.com
The below SQL query is one of the important one to get output from DB Statistics report. However, from what we can see, we are not sure why the 2nd join with WORKFLOW_CONTEXT (WC2) is needed (see the yellow-highlight in the attached screenshot). If we take that join out, it ran in just a few seconds in QA, as compared to the 4 minutes run when we did the test. We have also checked with IBM as part of TS013435687 and now as per IBM recommendation we are opening a enhancement request.
SELECT WFD.NAME AS NAME ,
WC.WFD_ID AS WFD_ID ,
COUNT(DISTINCT WC.WORKFLOW_ID) AS TOTALBPS ,
COUNT(*) AS TOTAL_STEPS ,
MIN(WC.START_TIME) AS MIN_START_TIME,
MAX(WC.START_TIME) AS MAX_START_TIME
FROM WORKFLOW_CONTEXT WC
LEFT OUTER JOIN WFD
ON
(
WC.WFD_ID = WFD.WFD_ID
AND WC.WFD_VERSION = WFD.WFD_VERSION
)
,
WORKFLOW_CONTEXT WC2
WHERE WC.STEP_ID = 0
AND WC.WORKFLOW_ID = WC2.WORKFLOW_ID
GROUP BY WFD.NAME,
WC.WFD_ID
ORDER BY 3 DESC
Note: We understand that this is not a show-stopper and with regular DB Re-Indexing & Re-Org activities we can still get data faster using the above said query. Even most of customer will not even raise any concern on this query, as they might be getting output data in quick time. We are also getting outputs, but raising this enhancement request so IBM can check the SQL Query and correct it.
Again it's not on the performance, but on the correctness of the SQL Query. Currently we have extra outer join and it's not necessary at all.
What is your industry? | Automotive |
How will this idea be used?
The below SQL query is one of the important one to get output from DB Statistics report. However, from what we can see, we are not sure why the 2nd join with WORKFLOW_CONTEXT (WC2) is needed (see the yellow-highlight in the attached screenshot). If we take that join out, it ran in just a few seconds in QA, as compared to the 4 minutes run when we did the test. We have also checked with IBM as part of TS013435687 and now as per IBM recommendation we are opening a enhancement request.
SELECT WFD.NAME AS NAME , WC.WFD_ID AS WFD_ID , COUNT(DISTINCT WC.WORKFLOW_ID) AS TOTALBPS , COUNT(*) AS TOTAL_STEPS , MIN(WC.START_TIME) AS MIN_START_TIME, MAX(WC.START_TIME) AS MAX_START_TIME FROM WORKFLOW_CONTEXT WC LEFT OUTER JOIN WFD ON ( WC.WFD_ID = WFD.WFD_ID AND WC.WFD_VERSION = WFD.WFD_VERSION ) , WORKFLOW_CONTEXT WC2 WHERE WC.STEP_ID = 0 AND WC.WORKFLOW_ID = WC2.WORKFLOW_ID GROUP BY WFD.NAME, WC.WFD_ID ORDER BY 3 DESC Note: We understand that this is not a show-stopper and with regular DB Re-Indexing & Re-Org activities we can still get data faster using the above said query. Even most of customer will not even raise any concern on this query, as they might be getting output data in quick time. We are also getting outputs, but raising this enhancement request so IBM can check the SQL Query and correct it. Again it's not on the performance, but on the correctness of the SQL Query. Currently we have extra outer join and it's not necessary at all. |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
Thank you for taking the time to provide your ideas to IBM. I truly value our relationship with you and appreciate your willingness to share details about your experience, your recommendations and ideas.
I need a little more information to understand your idea. Can you tell us what DB and OS you are using? How frequently are you performing DB maintenance?