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


      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. jprofiler_mode_1822.zip
          329 kB
        2. MODE-1822.zip
          252 kB
        3. no-transaction.nps
          37 kB
        4. no-transaction.png
          103 kB
        5. transaction.nps
          39 kB
        6. transaction.png
          99 kB

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