Hi @DevBob ,
A view with a suffix of _CFV means you’ve added a custom field to a screen. One of the tasks IFS performs when adding a custom field is to generate a custom view so you can extract the data from your custom fields.
I’m not sure how others determine the primary keys and indexed fields but here’s how we do it. We’ll open a screen lets say customer order then click on the system info at the bottom of the screen so we can see the view name. As a rule if you add _TAB to the end of the view you’ll know the table where the data is actually stored. We then use PL/SQL Developer to look at the CUSTOMER_ORDER_TAB table in view only mode so nothing is changed.
In PL/SQL we are able to see the column names, keys and indexes. So if we look at the keys on the CUSTOMER_ORDER_TAB we’ll see the column ORDER_NO is the primary key. If we look at the indexes screen we’ll see we have indexes on the following columns. CUSTOMER_NO, ROWSTATE, CUSTOMER_NO_PAY, PRE_ACCOUNTING_ID, CONTRACT, ORDER_NO, ROWKEY and TEXT_ID$. So if we utilize these columns in our join and where statement we’ll know IFS has indexes on them and performance will be improved.
Regards,
William Klotz