Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-7796

Make PostCommitSynchronousRunner reuse threads

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.1
    • Component/s: Core
    • Tags:
    • Backlog priority:
      200

      Description

      PostCommitSynchronousRunner creates a thread for each listener. This is also true for its derived class BulkExecutor (used only for bulk import).

      Instead it should reuse the threads. Somehow.

      Note that HibernateConfiguration.createEntityManagerFactory has the same use case.

      One idea would be to associate a delegated thread to the main thread, and reuse it when needed.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: