From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Malik Rumi <malik(dot)a(dot)rumi(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Triggers and Full Text Search * |
Date: | 2020-04-21 19:45:42 |
Message-ID: | e8ac5ece0e546aa722e7e738d7e82f1ec416ce19.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 2020-04-21 at 12:24 -0500, Malik Rumi wrote:
> More than a year ago, I implemented full text search on one of my sites.
> From the beginning, there was one problem (or at least, what I perceive
> to be a problem): when I use a script to insert many documents at once,
> they do *not* get indexed in fts. If a document is created or inserted
> one at a time, fts indexes immediately. The workaround I came up with
> was just to open each of those script inserted documents and then close
> them. As soon as they are opened, they get indexed.
A trigger will fire and update the index immediately.
That opening and closing you are talking about does not sound like
a database activity. Rather, it sounds like your software is delaying
the actual insert into the database, which would of course explain
why you cannot find it in the index.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Brannen | 2020-04-21 20:30:29 | how to slow down parts of Pg |
Previous Message | Adrian Klaver | 2020-04-21 18:28:31 | Re: Triggers and Full Text Search * |