Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

Foreign key detection horrible slow

$
0
0

I use hana db trial for some DB tests and was shocked about the performance of the JDBC driver implementation.

 

UK detection is very slow: connection.getMetaData().getIndexInfo(null, <schema>, <table>, true, false);  ~ 10 sek

Table metadata access also is very slow: connection.getMetaData().getColumns(null, <schema>, <table>, null); ~ 8 sek

 

but horrible is FK detection. It took about 15 sek

 

 

First two problems can be solved via custom select statements of sys.table_columns and sys.constraints but FK detection via select of SYS.REFERENTIAL_CONSTRAINTS doesn't help.

 

The JDBC driver is not perfect - OK. No difference to other JDBC drivers like Oracle JDBC driver.

 

But what is the problem with simple select statements of database metadata. Such statements must be fast in any case!

 

In my case, the statement:

SELECT * FROM REFERENTIAL_CONSTRAINTS WHERE SCHEMA_NAME = <schema>

 

took about 15 seconds for 5 records.

 

 

Are there any hints or options to speed-up the system?


Viewing all articles
Browse latest Browse all 3131

Trending Articles



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