• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Auto Coder Uses UPPER(FIELDNAME) Which Will Cause Temp Index To Be Built

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Auto Coder Uses UPPER(FIELDNAME) Which Will Cause Temp Index To Be Built

    I wanted to give a heads up on people using the auto-coder feature. I have a file that is keyed by RTAXED. I created a quick grid inquiry app using Auto Coder. I used RTAXED as my search field. The RPG code that was generated formatted the SQL statement to perform an UPPER on the field name RTAXED:

    UPPER(RTAXED)

    Because of this, the server job that serviced this app started building a temporary index on a file with over 90mil records. There was already an index by RTAXED over the PF. My research indicates that the UPPER() had something to do with the proposed index by the SQL engine.

    Just wanted to give everyone a heads up in case they run into this problem. I understand the use of upper on the variables but to use UPPER on a database field may cause some problems.

  • #2
    Good to know, thanks for posting this.

    Comment

    Working...
    X