pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 谭忠涛 <zhongtao.tan@seaboxdata.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: Performance Issue when using gin index
Date: Mon, 20 Jan 2025 22:01:40 -0500
Message-ID: <3265439.1737428500@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_7773A0055A04795D1E3DB6E3@qq.com>
References: <tencent_7773A0055A04795D1E3DB6E3@qq.com>

"=?utf-8?B?6LCt5b+g5rab?=" <zhongtao.tan@seaboxdata.com> writes:
> The performance of creating a gin index before inserting data is different from that of inserting data after creating a gin index.

This isn't terribly surprising.  Read

https://www.postgresql.org/docs/current/gin.html#GIN-FAST-UPDATE

There's also useful info in

https://www.postgresql.org/docs/current/gin.html#GIN-TIPS

			regards, tom lane





view thread (2+ messages)

Message-ID: <3265439.1737428500@sss.pgh.pa.us>
Permalink:  ../3265439.1737428500@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3265439.1737428500@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zhongtao.tan@seaboxdata.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: Performance Issue when using gin index
  In-Reply-To: <3265439.1737428500@sss.pgh.pa.us>

* 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