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

Multi-tenancy: SolverFactory.buildSolver is slow when <scoreDrl> usage because KieBase is rebuild every time

XMLWordPrintable

      The XmlSolverFactory.buildSolver() method takes about 5-10 seconds to execute which adds a significant amount of time to each execution of the engine (especially for small problems). The large majority of that time is building the KieBase object as seen in the screenshot below.

      Ideally Solvers should be lightweight (like EntityManager in JPA) and their creation should not take any noticeable time.

      Required in a multi-tenant environment.

              Unassigned Unassigned
              code4dc@gmail.com Eugene Shvartsman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: