Bug #78140 Add --truncate option to mysqlimport

Submitted: 19 Aug 2015 16:53 Modified: 19 Nov 2015 15:13
Reporter: Eric BELLO Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S4 (Feature request)
Version:5.5 OS:Any
Assigned to: CPU Architecture:Any
Tags: mysqlimport

[19 Aug 2015 16:53] Eric BELLO
Description:
The option --delete is quite lengthy with big tables.
A nice feature would be an option --truncate.
Goes way faster...

How to repeat:
1. Load a big table (millions rows) using mysqlimport.
2. Load it again with mysqlimport --delete > takes much time.
3. Truncate table then load again with mysqlimport > takes less time overall.

Suggested fix:
Add option --truncate option to mysqlimport, that truncates table before loading it instead of running a delete.
[19 Nov 2015 15:13] Georgi Kodinov
thank you for the reasonable feature request.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.