Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: select count() out of memory



 -------------- Original message ----------------------
From: Thomas Finneid <tfinneid(at)student(dot)matnat(dot)uio(dot)no>
> 
> 
> Adrian Klaver wrote:
> > I might be missing the point, but couldn't you do a Copy to a single table 
> > instead of multiple inserts and avoid the index overhead.
> 
> Are you saying, have one large table with indexes and do a COPY to it or 
> are you saying a one small empty table and do a COPY to it?
> 
> thomas

I'm thinking do a COPY to one large table.  If the cost of indexing is relatively fixed as 
you indicated in your previous post then you reduce the indexing overhead to each
COPY operation instead of each insert. 

--
Adrian Klaver
aklaver(at)comcast(dot)net



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group