Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7541

Improve BatchingStorageDecorator.flush

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 8.43.0.Final
    • Reliable Session
    • None
    • 2023 Week 36-38 (from Sep 4)
    • NEW
    • NEW
    • ---
    • ---

      Issue Description:

      https://github.com/kiegroup/drools/pull/5466#issuecomment-1693002363
      https://github.com/kiegroup/drools/pull/5466#issuecomment-1700489033

      Already done profiling and confirmed that batchingRemoveSet.forEach(storage::remove) is the bottle-neck.

      batchingRemoveSet.forEach(storage::remove) should be reduced if we record objects which are added and removed before persisting,

      Acceptance Criteria:

      • Implement the optimization
      • Confirm with a benchmark

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: