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

Make EmbedBlob.length use skip instead of read

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.4.2.0, 10.5.1.1
    • Component/s: JDBC
    • Labels:
      None
    • Bug behavior facts:
      Performance

      Description

      EmbedBlob.length uses read to process the whole Blob when the length has not been encoded at the head of the stream.
      Using skip instead of read can lead to better performance.

      I also plan to make some minor cleanups under this issue; JavaDoc and to rename a variable.

        Attachments

        1. derby-3768-2a-misc_fixes.diff
          5 kB
          Kristian Waagan
        2. derby-3768-1b-length_skip.diff
          2 kB
          Kristian Waagan
        3. derby-3768-1a-length_skip.diff
          2 kB
          Kristian Waagan

          Activity

            People

            • Assignee:
              kristwaa Kristian Waagan
              Reporter:
              kristwaa Kristian Waagan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: