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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: