Re: Would SSD improve Index Only Scan performance by a lot?

2019-10-08 Thread Matthew Hall
For indexes the SSDs are at least 4X faster but you won't get that to happen unless you fix the planner tunable for the random page fetch cost first. Super important change for SSDs. Matthew Hall > On Oct 8, 2019, at 5:12 PM, Rick Otten wrote: > > >> On Tue, Oct 8, 20

Re: Query with "ILIKE ALL" does not use the index

2018-07-26 Thread Matthew Hall
On Jul 26, 2018, at 9:44 AM, Tom Lane wrote: > > Nicolas Even writes: >> However when I run the same (as far as I understand it) query but with >> the ALL operator, the index is not used: >> explain analyze select name from totoz where name ilike all(array['%tot%']); > > There's only index supp

Re: Slow query when pg_trgm is in inner lopp

2018-06-20 Thread Matthew Hall
Is there a reason you used GIST on your pg_trgm indices and not GIN? In my tests and previous posts on here, it nearly always performs worse. Also, did you make sure if it's really SSD and set the random_page_cost accordingly? Matthew Hall > On Jun 20, 2018, at 8:21 AM, Sasa Vili

Re: Simple Query Elapsed Time ~ 3 hrs Using Bitmap Index/Heap Scan

2018-06-05 Thread Matthew Hall
s actually stored inside of those that will help. Matthew Hall > On Jun 5, 2018, at 7:17 AM, Fred Habash wrote: > > Trying to optimize the Elapsed Time (ET) of this query. Currently, it is > hovering around 3 hrs. > > Running a 'vaccum analyse' had no effect on E

Re: Latest advice on SSD?

2018-04-10 Thread Matthew Hall
and 8 Xeon cores. I usually burn up CPU more than I burn up disks or RAM as compared to using magnetic where I had horrible IO wait percentages, so it seems to be performing quite well so far. Matthew Hall > On Apr 9, 2018, at 7:36 PM, Craig James wrote: > > One of our four "b

Re: insert and query performance on big string table with pg_trgm

2017-12-06 Thread Matthew Hall
> On Dec 5, 2017, at 11:23 PM, Sergei Kornilov wrote: > You has very slow (or busy) disks, not postgresql issue. Reading 6760 * 8KB > in 70 seconds is very bad result. > > For better performance you need better disks, at least raid10 (not raid5). > Much more memory in shared_buffers can help w

Re: insert and query performance on big string table with pg_trgm

2017-12-05 Thread Matthew Hall
On Nov 21, 2017, at 12:05 AM, Matthew Hall wrote: >> Do you really need the artificial primary key, when you already have another >> column that would be used as the primary key? If you need to use this it a >> foreign key in another type, then very well might. But maintain

Re: pg_dump 3 times as slow after 8.4 -> 9.5 upgrade

2017-11-22 Thread Matthew Hall
On Nov 22, 2017, at 5:06 AM, Henrik Cednert (Filmlance) wrote: > > When investigating the zlib lead I looked at 8.4 installation and 9.5 > installation. 9.5 includes zlib.h (/Library/PostgreSQL//9.5/include/zlib.h), > but 8.4 doesn't. But that's a header file and I have no idea how that really

Re: pg_dump 3 times as slow after 8.4 -> 9.5 upgrade

2017-11-22 Thread Matthew Hall
> On Nov 21, 2017, at 10:18 PM, Henrik Cednert (Filmlance) > wrote: > > WHat's the normal way to deal with compression? Dump uncompressed and use > something that threads better to compress the dump? I would say most likely your zlib is screwed up somehow, like maybe it didn't get optimized

Re: insert and query performance on big string table with pg_trgm

2017-11-21 Thread Matthew Hall
Hi Jeff, Thanks so much for writing. You've got some great points. > On Nov 20, 2017, at 5:42 PM, Jeff Janes wrote: > While I have not done exhaustive testing, from the tests I have done I've > never found gist to be better than gin with trgm indexes. Thanks, this helps considerably, as the do

insert and query performance on big string table with pg_trgm

2017-11-20 Thread Matthew Hall
keyword%'::text) Planning time: 0.252 ms Execution time: 58442.413 ms (8 rows) Thanks for reading this and letting me know any recommendations. Sincerely, Matthew Hall