Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all articles
Browse latest Browse all 445

Reading large table is slow

$
0
0

Hi,
              I have a table that has 80,000 records i have to read all data and I cannot filter records. It takes over 90 seconds. This is way too slow. I tried with setFetchSize of 50,100,1000,10000. Nothing helped.
     Connection conn = getJdbcTemplate().getDataSource().getConnection();

    conn.setAutoCommit(false);

    PreparedStatement stmt = conn.prepareStatement(sqlGetAllData);//, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

    stmt.setFetchSize(50);

 

What is the best way to retrieve large tables within 15-30 seconds.

 

Thanks,

Bharani

Forums: 

Viewing all articles
Browse latest Browse all 445

Trending Articles



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