pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Souvik Bhattacherjee <kivuosb@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Running concurrent txns and measuring the timings in Postgres
Date: Wed, 24 Jul 2019 13:53:22 -0600
Message-ID: <9FDB31EE-CEC5-4B19-B311-E96AC7139706@gmail.com> (raw)
In-Reply-To: <CAANrPSckb71-5L-vCpVMHr1mqmDQhzgODj0WZL0B+ZZW+-dHxA@mail.gmail.com>
References: <CAANrPSeXewRj2NehjMog-=zuYUbfz677iUOV1j-Gzm94XcJ9Lg@mail.gmail.com>
	<160cb824-6952-d468-9a6b-3b7474348d5a@aklaver.com>
	<CAANrPSckb71-5L-vCpVMHr1mqmDQhzgODj0WZL0B+ZZW+-dHxA@mail.gmail.com>


> On Jul 24, 2019, at 1:22 PM, Souvik Bhattacherjee <kivuosb@gmail.com> wrote:
> 
> > It would help to know what problem you are trying to solve?
> 
> Multiple txns are inserting tuples into a table concurrently. Wanted to measure 
> the total time taken to complete the insertion process. Some txns overlap with 
> others on the tuples they insert. Duplicate tuples are not inserted.
> -- 
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
Start both/all clients at approximately the same time, each firing a transaction at some believable interval. (Or separate threads with separate db connections.)  This should generate the concurrency load I think you’re looking for. You can easily time the iteration; actual details on server side would likely involve turning on maximum logging, with client identifier, and analyzing the logs.

view thread (12+ messages)  latest in thread

Message-ID: <9FDB31EE-CEC5-4B19-B311-E96AC7139706@gmail.com>
Permalink:  ../9FDB31EE-CEC5-4B19-B311-E96AC7139706@gmail.com/
Also on:    postgresql.org/message-id/9FDB31EE-CEC5-4B19-B311-E96AC7139706@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, kivuosb@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Running concurrent txns and measuring the timings in Postgres
  In-Reply-To: <9FDB31EE-CEC5-4B19-B311-E96AC7139706@gmail.com>
  References: <CAANrPSeXewRj2NehjMog-=zuYUbfz677iUOV1j-Gzm94XcJ9Lg@mail.gmail.com> <160cb824-6952-d468-9a6b-3b7474348d5a@aklaver.com> <CAANrPSckb71-5L-vCpVMHr1mqmDQhzgODj0WZL0B+ZZW+-dHxA@mail.gmail.com> <9FDB31EE-CEC5-4B19-B311-E96AC7139706@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox