Your system is preferring sequential scan to using test_result_module_result_id_idx in this case. What type of storage do you use, what type of cache hits do you expect, and what do you have random_page_cost set to? That comes to mind as a significant factor in choosing index scans based on costs.
- Query plan prefers hash join when nested loop is much faster iulian dragos
- Re: Query plan prefers hash join when nested loop is mu... Michael Lewis
- Re: Query plan prefers hash join when nested loop i... iulian dragos
- Re: Query plan prefers hash join when nested lo... iulian dragos
- Re: Query plan prefers hash join when nested loop is mu... David Rowley
- Re: Query plan prefers hash join when nested loop i... iulian dragos
- Re: Query plan prefers hash join when nested lo... David Rowley
- Re: Query plan prefers hash join when neste... iulian dragos
- Query plan prefers hash join when nested loop is much f... iulian dragos