Derby
  1. Derby
  2. DERBY-1996

DatabaseMetaData.getColumns() takes long time to return columns for a particular schema of Apache JDO TCK

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2.1.6
    • Fix Version/s: None
    • Component/s: SQL
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached
    • Bug behavior facts:
      Performance

      Description

      When running the Apache JDO "TCK", JPOX needs to query the columns for a particular schema, and so uses DatabaseMetaData.getColumns(null, schemaName, null, null). This takes the order of 3 minutes on a dual-core Pentium 3GHz (with large ram). I've cut the JPOX part down to a stand-alone test (will attach it).

      Thing to note is that with only the schema files d_* installed it takes the order of 20secs. When the schema_* files are also installed then performance goes downhill fast (even though they are in different schemas ... all *.sql file represents a different schema). No point in me postulating what could be the issue since you guys are the Derby experts.

      1. testcase.zip
        59 kB
        Andy Jefferson

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12387656 ] Default workflow, editable Closed status [ 12801779 ]
          Mamta A. Satoor made changes -
          Labels derby_triage10_11
          Knut Anders Hatlen made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Bug behavior facts [Performance]
          Issue & fix info [Repro attached]
          Bernt M. Johnsen made changes -
          Link This issue is related to DERBY-2584 [ DERBY-2584 ]
          Mike Matrigali made changes -
          Component/s SQL [ 11408 ]
          Andy Jefferson made changes -
          Field Original Value New Value
          Attachment testcase.zip [ 12343570 ]
          Andy Jefferson created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Andy Jefferson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development