Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1854

Indexing took too much time to finish when using explicit JTA transaction compared to no transaction

XMLWordPrintable

      When creating nodes under explicit JTA transaction, it took much more time to save compared to non transaction.
      When query functionality is disabled, the time spent in both cases are almost identical (In my real case, the transaction case even run a little bit faster than non transaction case). Therefore, I think it should be a Hibernate Search/Lucence integration issue.

      See attached profile data for details
      In the non-transaction case, there are 8 [Lucene Merge Thread] threads created.
      However, in the transaction case, there are 89 [Lucene Merge Thread] threads created which almost ten times than previous case.

        1. no-transaction.nps
          37 kB
          Oliver Zhou
        2. no-transaction.png
          103 kB
          Oliver Zhou
        3. transaction.nps
          39 kB
          Oliver Zhou
        4. transaction.png
          99 kB
          Oliver Zhou

              hchiorean Horia Chiorean (Inactive)
              ozhou_jira Oliver Zhou (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: