Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-12934

Optimize IF(a, ds1, ds1 + row/ds) to ds1 + IF(a, DATASET(row/ds))

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.0
    • Component/s: Code Generator
    • Labels:

      Description

      It is generally more efficient for only the item to be added to the dataset to be conditional. HPCC-12876 shows an example where very heavily nested IFS() causes an exponential traversal of the graph - which this would also avoid.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ghalliday Gavin Halliday
                Reporter:
                ghalliday Gavin Halliday
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: