OpenJPA
  1. OpenJPA
  2. OPENJPA-1847

Use a single connection when generating schema

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0, 2.2.0
    • Component/s: jdbc
    • Labels:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Rick Curtis
            Reporter:
            Michael Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development