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

Update on tables with blob columns streams blobs into memory even when the blobs are not updated/accessed.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 10.6.1.0
    • None
    • SQL
    • None
    • Repro attached

    Description

      While investigating DERBY-1482, I wrote a simple program to see the behavior of a simple update (without any triggers) of a table with blob columns.

      The update is on a non-blob column of a table with blob volumns.

      When this update is made with limited heap memory, Derby runs into OOM error.

      I tried another table similar to earlier table but with no blob column. An update on that table does not run into OOM when run with same limited heap memory.

      I would have expected the update to pass for table with blob column since we are not referencing/updating the blob column. But it appears that we might be streaming in blob column even though it is untouched by the update sql.

      I wonder if working on this jira first will make the work for DERBY-1482 any easier or better yet, will it make the problem with DERBY-1482 go away? Will attach a reproducible program for this soon.

      Attachments

        1. derby4537Repro.java
          2 kB
          Mamta A. Satoor

        Issue Links

          Activity

            People

              mamtas Mamta A. Satoor
              mamtas Mamta A. Satoor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: