From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Atul.Goel@globaldatapoint.com |
Date: | 2010-07-13 15:45:27 |
Message-ID: | 1279035927.30950.3.camel@jd-desktop.unknown.charter.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 2010-07-13 at 20:33 +0800, Craig Ringer wrote:
> That's a write rate of 34MB/min, or half a meg a second. Not pretty.
>
> Where's the load during the COPY? Mostly CPU? Or mostly disk I/O?
>
> Are you writing the output to the same disk the database is on? (Not
> that it should make this much difference).
>
> > 3) Find a solution when the file size become > 1GB
>
> That's going to be interesting.
> Do you really need to store whole XML documents this size in the
> database, rather than broken up into structures that can be worked with
> usefully in the database? If so, PostgreSQL might not be your best choice.
>
This is solution seems wrong as a whole. A file that size has no
business inside PostgreSQL. If he "really" needs a DB API to it, have a
point to the filesystem where the file lives and write a
pl-/perl/java/python/php/ruby function to slurp the XML from the
filesystem and hand it off.
JD
> --
> Craig Ringer
>
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Landscheidt | 2010-07-13 16:09:27 | Re: Postgresql 8.4, XPath and name() function |
Previous Message | Adrian Klaver | 2010-07-13 15:12:05 | Re: Why can't I see the definition of my relations |