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

Use a single connection when generating schema

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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
        curtisr7 Rick Curtis added a comment -

        Found a NPE in other testing.

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

        Commited changes to 2.1.x and trunk.

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development