Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1847

Use a single connection when generating schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0, 2.2.0
    • jdbc
    • None

    Description

      The SchemaTool obtains a new connection for each table it creates, then again for each index on each table, and again for each FK, and so on.

      The impact of obtaining multiple connections can be reduced by using a connection pool but it's still quite noticeable when running our unit tests when the schema tool runs for each test method.

      Attachments

        1. OPENJPA-1847.patch.txt
          8 kB
          Michael Dick

        Activity

          People

            curtisr7 Richard G. Curtis
            mikedd Michael Dick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: