Reply to Re: Stream from FTP directly to MySQL while parsing CSV

Your name:

Reply:


Posted by NC on 10/16/78 11:38

Eric Anderson wrote:
> NC wrote:
> > This is not necessarily a good thing. Because you want minimize the
> > disk usage, you are missing out on MySQL's ability to process large
> > files very quickly. I would suggest an alternative approach:
> >
> > 1. Copy the remote file to your local disk.
> > 2. Use LOAD DATA INFILE to load the data into MySQL.
> > 3. Delete the data file, if necessary.
>
> Interesting approach. It would be fast and low on resources (although it
> would require usage of the filesystem but perhaps that isn't too big of
> a deal). The only downside is that it is MySQL specific. Currently this
> application is database independent and it would be nice to keep it that
> way.

If memory serves, all SQL databases support import of text files. The
query syntax may differ, but the concept is clearly there...

Cheers,
NC

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация