How to implement several threads in Java for downloading a single table data?

前端 未结 4 1129
北海茫月
北海茫月 2020-12-10 00:35

How can I implement several threads with multiple/same connection(s), so that a single large table data can be downloaded in quick time.

Actually in my application,

4条回答
  •  轮回少年
    2020-12-10 00:43

    As Vikas pointed out, if you're downloading a gigabytes of data to the client-side, you're doing something really really wrong, as he had said you should never need to download more records that can fit into your screen. If however, you only need to do this occasionally for database duplication or backup purpose, just use the database export functionality of your DBMS and download the exported file using DAP (or your favorite download accelerator).

提交回复
热议问题