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

        Michael Dick created issue -
        Michael Dick made changes -
        Field Original Value New Value
        Attachment OPENJPA-1847.patch.txt [ 12457692 ]
        Michael Dick made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Rick Curtis made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Assignee Michael Dick [ mikedd ] Rick Curtis [ curtisr7 ]
        Rick Curtis made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Fix Version/s 2.2.0 [ 12315910 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development