c# - Implementing a MySQL command progress bar -
we trying parse file , store in mysql database. commands importing large trace file several gigabytes in size, it may of interest user track progress of command. using following command:
string commandtext = "set autocommit = 0; " + "start transaction; " + "load data local infile \'" + filepath + "\' " + "into table testdatabase.metadata " + @"fields terminated '\t' " + @"lines terminated '\n' " + "(position," + "timespace," + "duration," + "disk," + "request," + "sector," + "length); " + "commit;";
is there way track progress while command being executed in order implement progress bar?
you can make progress bar changes progress based on stage query in. it's possible put guid in comment somewhere in query, use show full processlist
figure stage query in. there's no exact way of gauging actual progress. innodb can try using show innodb status
isn't precise.
Comments
Post a Comment