Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2003

CS-D: Loss of incremental performance when using groupBy()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 8.0.0.Final
    • 7.38.0.Final
    • optaplanner-core
    • None
    • 2020 Week 40-42 (from Sep 28), 2020 Week 43-45 (from Okt 19)
    • 2
    • Hide

      There is no workaround.

      Show
      There is no workaround.
    • High
    • NEW
    • NEW

      In some OptaPlanner examples, we have seen major performance degradation when switching to Constraint Streams. (As much as 95 % of DRL performance can be lost.) This has been shown to come from the way that the groupBy() building block is implemented using Drools.

      The problem gets progressively worse with bigger data sets, clearly pointing to a scalability issue.

      The solution is to redesign the CS-D implementation to handle groupBy() more efficiently. More specifically, the use of more than one from() DRL statement needs to be avoided.

      Some more information can be found in the following working document:

      https://docs.google.com/document/d/1s4pMSN3qLO5LLE7PeMAwj5RQfpzvu8wkqj_t5jB3cEc/edit

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: