R
Ryan Liu
I have an application need export ane import data of projects. There are
about 10 database tables releated to one project. 3 of them each could have
up to 100K lines data.
I can export all data out into a xml file and then zip it. When I do import,
I parse this xml file and then insert into database myself.
Or I can export all tables out in csv format and then use mysql's client
command "load local file" (which is claimed very fast command).
I have keep thinking which is best choice. Will Using XML format to import
consume too much momory and what are best way(classes, API in C#) to use
xml?
Use csv file, size should be smaller, and mysql client tool is fast. But not
so portable and when I can not show a progress bar while doing import ...
Can some experts comment on this?
Thanks!
Ryan
about 10 database tables releated to one project. 3 of them each could have
up to 100K lines data.
I can export all data out into a xml file and then zip it. When I do import,
I parse this xml file and then insert into database myself.
Or I can export all tables out in csv format and then use mysql's client
command "load local file" (which is claimed very fast command).
I have keep thinking which is best choice. Will Using XML format to import
consume too much momory and what are best way(classes, API in C#) to use
xml?
Use csv file, size should be smaller, and mysql client tool is fast. But not
so portable and when I can not show a progress bar while doing import ...
Can some experts comment on this?
Thanks!
Ryan