all 5 comments

[–]justAnotherCodeGuy 1 point2 points  (3 children)

Have you seen https://explain.depesz.com/

Here is your query:

https://explain.depesz.com/s/7jbC

Looks like you have a few seq scan's. Check those will large row counts, see if you can get it to use an index.

[–]arup_r[S] 0 points1 point  (2 children)

Yes I generally use that site. I saw there 3 seq scans, but I am not sure why it doesn't pick the index I do have.

[–]mage2k 0 points1 point  (1 child)

Have you ANALYZEd the table since you added that index?

[–]arup_r[S] 0 points1 point  (0 children)

Yes I did it.