|
Roland, I wouldn’t recommend parsing the
file into an array. It would be better to use the MySQL
command LOAD DATA INFILE to import the data. If you need to massage the data,
you can load it into a temporary table, process it, then
move it to your production table. I did this on a project recently. Importing
>40K records, massaging the data, updating changed records, inserting new
records and deleting old ones. It all ran in under a minute from a Witango cron job. You will also want to use a delimiter that
does not appear anywhere in the data. A vertical bar is a good option. Dave Shelley -----Original
Message----- Perhaps my problem is not being able to make the
delimiters change from the defaults. No matter what I set the delimiters to be
(I'm trying a pipe delimiter here), the array attributes don't override the
defaults. System A exports a file that has many records, 10K to
15K. Records have fields that are text and fields that are numeric. ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
- Witango-Talk: best practice for uploading from file t... Roland Dumas
- Re: Witango-Talk: best practice for uploading fr... Dan Stein
- Re: Witango-Talk: best practice for uploadin... Roland Dumas
- Re: Witango-Talk: best practice for uploading fr... Roland Dumas
- RE: Witango-Talk: best practice for uploadin... Scott Cadillac
- Re: Witango-Talk: best practice for uploadin... Dave Shelley
- Re: Witango-Talk: best practice for uplo... Roland Dumas
- RE: Witango-Talk: best practice for ... Dave Shelley
- Re: Witango-Talk: best practice for uplo... Roland Dumas
- Witango-Talk: Variable Timeout solut... Tan Lim Soon Fu
- Re: Witango-Talk: Variable Time... Jonah Simpson
- Re: Witango-Talk: Variable Time... Anthony M. Humphreys
- Re: Witango-Talk: Variable ... Tan Lim Soon Fu
- RE: Witango-Talk: Varia... Scott Cadillac
- Re: Witango-Talk: best practice for uploadin... Roland Dumas
- RE: Witango-Talk: best practice for uploading fr... Storey, Paul
