From: | Remigiusz Sokolowski <rems(at)gdansk(dot)sprint(dot)pl> |
---|---|
To: | Charles Tassell <ctassell(at)isn(dot)net> |
Cc: | Michal Samek <webmaster(at)tony(dot)cz>, pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] So slow inserts... Why? |
Date: | 1999-05-27 06:33:39 |
Message-ID: | Pine.GS4.4.02A.9905270826430.13045-100000@netra.gdansk.sprint.pl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Try using transactions. I found when doing single inserts they could take
> hours, but when grouping all the inserts into a single transaction, it was
> relatively quick. It's been a while, but I believe the syntax is:
> BEGIN
> insert ...
> insert ...
> insert ...
> COMMIT;
Btw. I want to ask about how much "inserts" can I insert between BEGIN and
END; When I do it last time ( I want to add about 1000 "inserts") - I get
error - that buffer can contain to 20 000 characters.
I use psql, so I'm not sure if this is a limit of psql itself or limit of
backend.
And may be anybody knows if it is possible change this limit and where?
TIA
Rem
-------------------------------------------------------------------*------------
Remigiusz Sokolowski e-mail: rems(at)gdansk(dot)sprint(dot)pl * *
-----------------------------------------------------------------*****----------
From | Date | Subject | |
---|---|---|---|
Next Message | Michal Samek | 1999-05-27 06:45:43 | Re: [GENERAL] So slow inserts... Why? |
Previous Message | Dannie M Stanley | 1999-05-27 02:49:52 | Maximum Records |