Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

JDBC DatabaseMetadata.getColumns Seems Slow - response (7) by _H_

$
0
0
/* 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)             )

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>