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

OracleDictionary uses reflection way too often

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.1
    • Component/s: jdbc
    • Labels:
      None

      Description

      OracleDictionary has many Class.forName, getMethod and getField for oracle.jdbc.OraclePreparedStatement.
      This gets executed every time a setString gets used. Which can create quite some overhead.

      We might check those Members at construction time and use this info later at runtime.

        Attachments

        1. OPENJPA-2602.4review.2.patch
          8 kB
          Mark Struberg
        2. OPENJPA-2602.4review.4.patch
          8 kB
          Mark Struberg

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              struberg Mark Struberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: