Uploading and parsing a file into a table

From: Adam Witney <awitney(at)sghms(dot)ac(dot)uk>
To: pgsql-php <pgsql-php(at)postgresql(dot)org>
Subject: Uploading and parsing a file into a table
Date: 2004-04-19 14:53:11
Message-ID: BCA9A667.314F6%awitney@sghms.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


Hi,

I have to build a web form to upload data files (approx 50 columns, 10,000
rows) and then parse them into a table.

I can open and parse the files in PHP and slurp them into the table using
COPY, but I was just wondering if this is the best way to do this?

Also I may have to be able to upload several of them at a time, do you think
the PHP/COPY method would scale well to up to 10 files?

Would this be the fastest method?

Thanks for any advice

adam

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Browse pgsql-php by date

  From Date Subject
Next Message Yasmine Kedoo 2004-04-20 08:20:33 Re: UPDATE - Changing Password
Previous Message Robby Russell 2004-04-19 14:25:12 Re: UPDATE - Changing Password