Original Message:
Sent: Wed April 10, 2024 09:49 PM
From: Craig Kokay
Subject: Maximo performance issues
Hi Darren,
I'll add to it that whenever the requirement is "not completed", I ask do you mean just the status of COMP or that + its synonyms? This is because the status is a synonym type of domain and it's not uncommon for clients to have additional synonyms like TECHCOMP. If that is the case, then the query needs to be
and status not in (select value from synonymdomain where maxvalue = 'COMP' and domainid = 'WOSTATUS')
------------------------------
Regards, Craig Kokay
Principle Consultant, COSOL
https://cosol.global/
Ph: +61-411-682-040
email: craig.kokay@cosol.global
#IBMChampion
------------------------------
Original Message:
Sent: Mon April 08, 2024 07:58 AM
From: julian meyer
Subject: Maximo performance issues
Hi @Darren Hornidge
Thanks for the suggestion. It really performs notably faster. But I don't understand why. I have two questions about your version of the query:
(woclass = 'WORKORDER' or woclass = 'ACTIVITY')
That part is always added in the automatically generated queries, and yours contains it too, just like the ones of the other guys. But I don't see why. Because the results are the same when I leave it out and the performance does not seem to be affected either. As you can see, I have not used it in any of my queries. I want to keep my queries as clean as possible, so if that "woclass" part doesn't add any value I don't want to use it.
Also, why is there an extra set of paranthesis around the first line ?
((woclass = 'WORKORDER' or woclass = 'ACTIVITY') and historyflag = 0 and istask = 0 and siteid = 'DKNORHS')
I tried the query with and without it, it doesn't seem to make a difference.
I am just curious and trying to understand all of it :) The part with the history flag instead of sorting by status did make it quicker, so thank you very much for that.
Best regards
Julian
------------------------------
julian meyer
Original Message:
Sent: Mon April 08, 2024 12:40 AM
From: Darren Hornidge
Subject: Maximo performance issues
Hi Julian,
I had a look at your first query - DKNORHS åbne arbejdsordrer
May I suggest this version below instead. Being that you are looking for workorders that are not equal to COMP CLOSE or CAN, I added in the history flag and just set status not equal to COMP.
This query should be very fast for you
((woclass = 'WORKORDER' or woclass = 'ACTIVITY') and historyflag = 0 and istask = 0 and siteid = 'DKNORHS')
and status != 'COMP'
and ( worktype NOT IN('PMCAL','EC','PM','PMVER','PRSML','TPM','PMAM')
OR
worktype IS NULL
)
------------------------------
Darren Hornidge
Asset Care Systems Manager
Coca Cola Europacific Partners
0437215275