Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5698

Document performance issue with 2-arg versions of setXXXStream methods for LOBs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.8.2.2
    • 10.9.1.0
    • Documentation
    • None

    Description

      The PreparedStatement.setAsciiStream and other methods have a 3-arg form that includes the length of the stream and a 2-arg form that does not. If the 2-arg form is used, Derby has to calculate the length every time the method is called. With LOBs, especially large ones, this can cause a major performance impact, especially if the method is called repeatedly. This should be documented where appropriate.

      Kristian, please feel free to correct or amplify anything I've said here.

      Attachments

        1. DERBY-5698.diff
          3 kB
          Camilla Haase
        2. DERBY-5698.stat
          0.1 kB
          Camilla Haase
        3. DERBY-5698.zip
          6 kB
          Camilla Haase
        4. DERBY-5698-2.diff
          4 kB
          Camilla Haase
        5. DERBY-5698-2.zip
          6 kB
          Camilla Haase
        6. DERBY-5698-3.diff
          4 kB
          Camilla Haase
        7. DERBY-5698-3.zip
          6 kB
          Camilla Haase

        Activity

          People

            chaase3 Camilla Haase
            chaase3 Camilla Haase
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: