Re: CSV speed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg Donald wrote:
On Mon, Mar 10, 2008 at 8:09 PM, Danny Brow <maillist@xxxxxxxxxxxxxxx> wrote:
I have about 10 csv files I need to open to access data. It takes a lot
 of time to search each file for the values I need. Would it be best to
 just dump all the cvs files to an SQL db and then just grab what I need
 from there? I'm starting to think it would make a lot of sense. What do
 you guys think?

grep foo whatever.csv | php ./script.php

While that could work if the server is set up to allow you to run system calls, but you don't find that available outside of test environments. Also depending on the file sizes, you'll see some differences.

Wolf


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux