Search Postgresql Archives

Re: select count() out of memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 -------------- Original message ----------------------
From: Thomas Finneid <tfinneid@xxxxxxxxxxxxxxxxxxxxx>
> 
> 
> 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@xxxxxxxxxxx

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux