Select workorders (via parameters) and their children

前端 未结 2 1165
旧巷少年郎
旧巷少年郎 2021-01-26 03:54

I have a Oracle 12c query that will eventually be used in a BIRT report (in IBM\'s Maximo Asset Management platform).


The query/report will retrieve records as fol

相关标签:
2条回答
  • 2021-01-26 04:24

    There are many indexes that you can use on the WORKORDER table. What stands out in your query is that you're not referring to the SITEID column which should almost always come with the WONUM as together they compose the "primary key", which in Oracle Maximo is a unique index.

    You can confirm this by running this query:

       select attributename from maxattribute where objectname='WORKORDER' AND PRIMARYKEYCOLSEQ IS NOT NULL;
    

    Also, a good practice is to identify which indexes you will need to query the needed data. You can have a look at the table's indexes with your favorite SQL tool or from the Database Configuration Maximo application.

    0 讨论(0)
  • 2021-01-26 04:26

    full table scans are only required if no proper index is in place. So create such and you will see that the full table scans disappear

    0 讨论(0)
提交回复
热议问题