On Sun, May 1, 2016 at 10:27 PM, drum.lucas@xxxxxxxxx <drum.lucas@xxxxxxxxx> wrote:
Sorry @Melvin, sent the previous email just to you..That's a great one, too! Cheers!Well.. the index creation did not help...if possible please have a look on the explain analyze results:What else can I do?The indexes I created is:- CREATE INDEX CONCURRENTLY ix_inode_segments_notes_clientids2 ON gorfs.inode_segments USING btree ("full_path");- CREATE INDEX CONCURRENTLY ix_inodes_checksum_st_size ON gorfs.inodes USING btree ("checksum_md5","st_size");
Two things to consider.
1. Did you remember to run ANALYZE on the table after the new indexes were created?
2. Try doing a
SET enable_seqscan = off;
before executing the query and compare execution times.
It might just be that a seqscan would be faster.
--
Melvin Davidson
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.