Search Postgresql Archives

Re: pg full text search very slow for Chinese characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is all default values.

I just check maintenance_work_mem and indeed it is 64MB.

 

At first I gave 2GB ram to docker and later I increased ram to 4GB.

It did not make much difference when ram increased from 2GB to 4GB.

 

I will try increasing maintenance_work_mem and see if it helps.

 

发件人: Michael Lewis <mlewis@xxxxxxxxxxx>
日期: 2019911 星期三 上午12:11
收件人: 少君 <jimmy_huang@xxxxxxxx>
抄送: "pgsql-general@xxxxxxxxxxxxxxxxxxxx" <pgsql-general@xxxxxxxxxxxxxxxxxxxx>
主题: Re: pg full text search very slow for Chinese characters

 

>My postgres instance is based on docker image postgres:11 and runs on my MacBook Pro i7 16GB.

How much ram and such did you give to this vm?
 
 
>To my surprise, postgres 11 is extremely slow when creating a full text index. I added a column of tsvector type and tried to create an index on that column. Pg could not finish creating a GIN index for a long time and I had to cancel the execution.I then tried to create a partial full text index for 500 rows and it took postgres 2 to 3 minutes to create the index.
 

Did you customize any config? maintenance_work_mem specifically would be relevant to the time to create an index and default value is only 64MB. Especially if you are running a spinning hard drive and not ssd, then this could be problematic.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux