/*
We have the same problem. I've never coded a lick of java but here is what i found.
If teradata controls the SQL used to query the catalog there should be a way for teradata improve the performance.
Can teradata change the SQL?
public ResultSet getColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern)
throws SQLException
*/
/*The sql generated by the getColumns menthod uses this SQL */
and t.DatabaseName (not casespecific) like trim(trailing from 'DBNAME') (not casespecific)
/* If it used something like this it wouldn't be so slow
can you fix it, or has it been fixed in any version past 13.10 */
and ( ( t.DatabaseName (not casespecific) like trim(trailing from 'DBNAME') (not casespecific) and position( '%' in 'DBNAME') > 0 )
or t.DatabaseName (not casespecific) = trim(trailing from 'DBNAME') (not casespecific) )
↧