Re: [GENERAL] Populating huge tables each day

2005-07-03 Thread Ben-Nes Yonatan
On Tue, Jun 28, 2005 at 10:36:58AM -0700, Dann Corbit wrote: Nope, truncate is undoubtedly faster. But it also means you would have downtime as you mentioned. If it were me, I'd probably make the trade-off of using a delete inside a transaction. For every record in a bulk loaded table?

Re: [GENERAL] Populating huge tables each day

2005-06-28 Thread Dann Corbit
-Original Message- From: Jim C. Nasby [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 6:55 PM To: Dann Corbit Cc: Ben-Nes Yonatan; pgsql-general@postgresql.org Subject: Re: [GENERAL] Populating huge tables each day On Mon, Jun 27, 2005 at 01:05:42PM -0700, Dann Corbit wrote

Re: [GENERAL] Populating huge tables each day

2005-06-28 Thread Jim C. Nasby
On Tue, Jun 28, 2005 at 10:36:58AM -0700, Dann Corbit wrote: Nope, truncate is undoubtedly faster. But it also means you would have downtime as you mentioned. If it were me, I'd probably make the trade-off of using a delete inside a transaction. For every record in a bulk loaded table?

[GENERAL] Populating huge tables each day

2005-06-27 Thread Ben-Nes Yonatan
Hi All, First I apologize for the length of this email im just afraid that my problem is quite complicated for explination also about my english which is not my native language sorry :) I'm currently building a site for a client which will need to update his database on a daily routine

Re: [GENERAL] Populating huge tables each day

2005-06-27 Thread Dann Corbit
Of Ben-Nes Yonatan Sent: Monday, June 27, 2005 1:13 PM To: pgsql-general@postgresql.org Subject: [GENERAL] Populating huge tables each day Hi All, First I apologize for the length of this email im just afraid that my problem is quite complicated for explination also about my english

Re: [GENERAL] Populating huge tables each day

2005-06-27 Thread Jim C. Nasby
On Mon, Jun 27, 2005 at 12:43:57PM -0700, Dann Corbit wrote: I see a lot of problems with this idea. You mention that the database is supposed to be available 24x7. While you are loading, the database table receiving data will not be available. Therefore, you will have to have one server

Re: [GENERAL] Populating huge tables each day

2005-06-27 Thread Dann Corbit
-Original Message- From: Jim C. Nasby [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 12:58 PM To: Dann Corbit Cc: Ben-Nes Yonatan; pgsql-general@postgresql.org Subject: Re: [GENERAL] Populating huge tables each day On Mon, Jun 27, 2005 at 12:43:57PM -0700, Dann Corbit

Re: [GENERAL] Populating huge tables each day

2005-06-27 Thread Jim C. Nasby
On Mon, Jun 27, 2005 at 01:05:42PM -0700, Dann Corbit wrote: -Original Message- From: Jim C. Nasby [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 12:58 PM To: Dann Corbit Cc: Ben-Nes Yonatan; pgsql-general@postgresql.org Subject: Re: [GENERAL] Populating huge tables