From: Adam Witney <awitney@sghms.ac.uk>
To: pgsql-php <pgsql-php@postgresql.org>
Subject: Uploading and parsing a file into a table
Date: Mon, 19 Apr 2004 15:53:11 +0100
Message-ID: <BCA9A667.314F6%awitney@sghms.ac.uk> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: awitney@sghms.ac.uk
Subject: Re: Uploading and parsing a file into a table
In-Reply-To: <BCA9A667.314F6%awitney@sghms.ac.uk>
References: <BCA9A667.314F6%awitney@sghms.ac.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox