insertion becoming slow

From: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
To: <pgsql-general(at)postgresql(dot)org>
Subject: insertion becoming slow
Date: 2005-09-27 06:27:32
Message-ID: 967CFC4343BF2A4DAFACD026D33DC85118EC73@jal.iiitb.ac.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

thanks for the help..
i removed a few indexes,
but i cant remove the primary key and uniqye key constraints ..whoch means that indexes will be made on these 2 attributes.

i have four tables, each having such 2 attributes, one which is the primary key and the other is the uniqu key.

and the insertion to these 4 tables is by means of 4 stored procedures (1 for each table).

These stored procedures are being called within a transaction ..which i begin from the application..

i noticed by putting timers that it is the "COMMIT TRANSACTION" statement to the database (after calling the 4 stored procedures) that is taking time.

but commit transaction is not slow each time, in fact it remains very small for a large number of installs ..then suddenly rises (becomes almost 8 times) and then falls again.

why such a behaviour?

thanks
regards
surabhi

Browse pgsql-general by date

  From Date Subject
Next Message Qingqing Zhou 2005-09-27 06:31:16 Re: Can not get ODBC to log. Trace is not working.
Previous Message George Essig 2005-09-27 04:20:04 Re: RI_ConstraintTrigger question