Do you have lots of files to load?
Are they in different directories?
With different extensions?
With mixed upper- and lower-case names?
With naming conventions that don’t follow the tables’ names?
Do you want to maintain parallel load processes without custom programming or scripting?
Do you prefer not to script each load or explicitly enter it on the command line?
Introducing the ParaFlex Loader Utility from Infobright’s Client Services team! (Click here - http://www.infobright.org/Downloads/Contributed-Software/ - to be taken to the Download page.)
Our Client Services team experienced the same issues you have and evolved simple shell scripts to create a flexible tool that reads from a single control file of file/table pairs, writes the LOAD DATA INFILE statement for you, saves it, and even allows you to execute the loads in any degree of parallelism you choose. Bear in mind this is a bash shell script so you are free to edit it as you see fit or need.
Original description
Purposes
Benefits
Additonally, there is a “zero parallelism” option that simple creates the script file for manual use or further editing. (All exections, regardless of level of parallelism, generate a scripted load file in the user’s $HOME directory.)
Issues remaining to be addressed
Script assumes ‘mysql-ib’ executable
Add delimiters and enclosure characters to control file
No current reference to @bh_dataformat
No current check for multiple occurrences of the same table more than once in control file
Comments (0)
30th of March, 1:18 AM, Shanghai. Roughly seven hours left to the opening. I was late to the workshops but there are four days of ICDE 2009 ahead of me! I’ll enjoy every single talk. On Monday, in particular, I’ll visit Industrial Session 1 and then switch to (the rest of) the seminar on Large Graph Mining.
I guess I’ll have a lot to write about. Instead of putting everything to the blog, I’ll rather use a new forum thread for real-time updates. I invite everyone (of course not only ICDE participants!) to add a few words there. Any presentations worth attending? Any topics that you would like me to focus on?
Best greetings,
Dominik