insert latency

From: John de la Garza <john(at)jjdev(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: insert latency
Date: 2016-04-21 18:58:45
Message-ID: CANJa1iY0=u7s6X5FcYKs2VCyDydohv8zb4zo4bmsXCUAAw1_vw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

I have two programs running. One process does an insert. After the
insert a message is sent to a message bus. Then the second process
responds to the message by inserting a new row that depends on the
primary key of the first insert.

Some times I get an integrity error from the second process. I then
wait and try again with success.

When my first insert returns what does this mean? Does it mean that
the DB has accepted the request and will do it soon? Or does it mean
that the DB has accepted the request and it will now be available?

It seems like the answer is the former.

Responses

Browse psycopg by date

  From Date Subject
Next Message Robellard, Michael 2016-04-21 19:03:29 Re: insert latency
Previous Message Carlos Correia 2016-03-31 01:06:58 Export data to XLS