Re: Drop in insert performance after 20ish seconds

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Drop in insert performance after 20ish seconds
Date: 2020-02-25 21:14:22
Message-ID: 1582665262552-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

postgres=# \d pg_test_messages
Table "public.pg_test_messages"
Column | Type | Collation | Nullable |
Default
-----------+-----------------------------+-----------+----------+----------------------------------------------
Id | bigint | | not null |
nextval('pg_test_messages_id_seq'::regclass)
Message | text | | not null |
TimeStamp | timestamp without time zone | | |
Indexes:
"PK_pg_test_messages" PRIMARY KEY, btree ("Id")
"IX_pg_test_messages_Id" btree ("Id")

It seems you have 2 indexes on "Id" columns, as this column is not null and
also primary key,
"IX_pg_test_messages_Id" is not needed. I would drop it and test again.

Regards
PAscal

--
Sent from: https://www.postgresql-archive.org/PostgreSQL-novice-f2132464.html

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael J. Cosentino 2020-02-26 01:22:08 Re: Unable to Connect to Server Error Help
Previous Message Stephen Froehlich 2020-02-25 15:39:02 RE: Drop in insert performance after 20ish seconds