~ 100-1000rows . :
* [5000rows in 500batches]: 1716ms = ~ 2914rows .
( !).
db (i7 ), :
CREATE TABLE
archive_account_transactions
(
account_transaction_id INT,
entered_by INT,
account_id INT,
transaction_type_id INT,
DATE DATETIME,
product_id INT,
amount float,
contract_id INT NULL,
note CHAR(255) NULL
)
account_transaction_id (pk), account_id, DATE, contract_id.
, , , :
jdbc:sybase:Tds:40.1.1.2:5000/ikp?EnableBatchWorkaround=true;ENABLE_BULK_LOAD=true
.addBatch, , , java StringBuilder sql , execute. insert , , , , . Enable_bulk_load , EnableBatchWorkaround DYNAMIC_PREPARE = false, , .
, , ! , - , , , ? - , , sybase, mysql 16 000 , " " .
Rod