Re: Performance Issue when using gin index

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: 谭忠涛 <zhongtao.tan@seaboxdata.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Date: 2025-01-21T03:01:40Z
Lists: pgsql-bugs
"=?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