Issue Details (XML | Word | Printable)

Key: DERBY-1996
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Derby

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

Created: 24/Oct/06 06:30 PM   Updated: 08/Jul/09 02:10 PM
Return to search
Component/s: SQL
Affects Version/s: 10.2.1.6
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Zip Archive testcase.zip 2006-10-24 06:31 PM Andy Jefferson 59 kB
Issue Links:
Reference
 

Urgency: Normal
Issue & fix info: Repro attached
Bug behavior facts: Performance


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.