Afficher un message
Vieux 20/09/2007, 12h23   #1
Paul Scott
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Very Large text file parsing


I have a very large text file that gets dumped into a directoory every
now and then. It is typically around 750MB long, at least, and my
question is:

What is the best method to parse this thing and insert the data into a
postgres db?

I have tried using file(), fget*() and some others, all with limited
success. It goes through OK (I am sending it to a background process on
the server and using a callback function to email me when done) but it
is really knocking the machine hard, besides taking a real long time to
finish.

Is there a better way of approaching this? Any would be greatly
appreciated.

--Paul


All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/...imer/index.htm

  Réponse avec citation
 
Page generated in 0,04372 seconds with 9 queries