Postgresql disable sequence scan

To optimize some query, sometime we need to disable sequence scan, run this before query:
Set enable_seqscan = off;

Then do analyze to your query

Comments

Popular posts from this blog

Optimize SSD on Linux

Manually clean up zimbra zmcat/zmcpustat exploit

Ports to allow for whatsapp call