shootercheng commented on issue #58: export page data from db
URL: https://github.com/apache/commons-csv/pull/58#issuecomment-590318365
 
 
   > Google translate says:
   > 
   > > I have used printRecords (ResultSet) to export csv data before, but when 
the amount of data is relatively large, there is a problem with the export, so 
I added this export method, and it seems that it can be built separately, but 
there is nothing here Problem, enhanced the original export function
   > 
   > I do not see enhancements in this PR that has anything to do with JDBC. 
What am I missing?
   Please see my demo project for export page data from db, it takes less time
   https://github.com/shootercheng/batch/tree/export
   `
   21:19:59.967 [main] DEBUG 
com.single.batch.mapper.BatchLabelMapper.selectPage - ==>  Preparing: select 
concat_ws(',', id, ifnull(parent,''), ifnull(code,''), ifnull(status,''), 
ifnull(type,''), ifnull(customer_id,''), ifnull(operator_id,''), 
ifnull(reseller_id,''), ifnull(user_id,''), ifnull(product_id,''), 
ifnull(batch,''), ifnull(query_times,''), ifnull(first_time,''), 
ifnull(create_time,''), ifnull(update_time,'') ) from label_1 limit ?,? 
   21:19:59.968 [main] DEBUG 
com.single.batch.mapper.BatchLabelMapper.selectPage - ==> Parameters: 
990000(Integer), 10000(Integer)
   21:20:01.126 [main] DEBUG 
com.single.batch.mapper.BatchLabelMapper.selectPage - <==      Total: 10000
   21:20:01.131 [main] DEBUG org.apache.ibatis.transaction.jdbc.JdbcTransaction 
- Resetting autocommit to true on JDBC Connection 
[com.mysql.cj.jdbc.ConnectionImpl@59309333]
   21:20:01.131 [main] DEBUG org.apache.ibatis.transaction.jdbc.JdbcTransaction 
- Closing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@59309333]
   time 64218 ms
   `

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to