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

        Hide
        Rick Curtis added a comment -

        Found a NPE in other testing.

        Show
        Rick Curtis added a comment - Found a NPE in other testing.
        Hide
        Rick Curtis added a comment -

        Commited changes to 2.1.x and trunk.

        Show
        Rick Curtis added a comment - Commited changes to 2.1.x and trunk.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development