Re: Is it necessary to have index for child table in following case? - Mailing list pgsql-general

From Joe Conway
Subject Re: Is it necessary to have index for child table in following case?
Date
Msg-id 4B6A1DF7.8090506@joeconway.com
Whole thread Raw
In response to Re: Is it necessary to have index for child table in following case?  (Yan Cheng Cheok <yccheok@yahoo.com>)
Responses Re: Is it necessary to have index for child table in following case?  (Yan Cheng Cheok <yccheok@yahoo.com>)
List pgsql-general
On 02/03/2010 05:02 PM, Yan Cheng Cheok wrote:
>>
>> Are you using INSERT or COPY to insert your data? COPY tends to be
>> a lot faster than separate INSERTs, especially if you don't wrap
>> the INSERTs in a transaction block and COMMIT them in batches.
>
> But I do not use File or Stdio. The data is coming in row by row
> real-time. I need to insert the data programmatic real-time into the
> database. That's why I use INSERT. But maybe I miss out something on
> the usage of COPY, please advice :)

I already answered that about a month ago but you ignored it:
http://archives.postgresql.org/pgsql-general/2010-01/msg00287.php

Joe


Attachment

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Need to Remove Constraint, but Don't Know How - Previous attempts failed
Next
From: Yan Cheng Cheok
Date:
Subject: Shall I apply normalization in the following case?