Tom Lane escreveu:
Gregory Stark <[EMAIL PROTECTED]> writes: I think I found the answer! 8.1: likes nested loop even after vacuumdb on the database. 8.3: likes hash at first time but: - after vacuumdb *on the database* (I was running on the tables.....), it turns out to: Merge Join (cost=178779.93..328503.44 rows=30000 width=38) in 20005.207 ms #set enable_mergejoin=off; Hash Join (cost=156644.00..365204.03 rows=30000 width=38) in 29104.390 ms * a very faster hash here, seqscanning the smaller table before the bigger one. Tricky! I wont trust table vacuums anymore... -- []´s, André Volpato Ecom Tecnologia LTDA - Análise e Desenvolvimento [EMAIL PROTECTED] |
- [GENERAL] Hash join in 8.3 André Volpato
- Re: [GENERAL] Hash join in 8.3 Tom Lane
- Re: [GENERAL] Hash join in 8.3 Gregory Stark
- Re: [GENERAL] Hash join in 8.3 André Volpato
- Re: [GENERAL] Hash join in 8.3 Gregory Stark
- Re: [GENERAL] Hash join in 8.3 Tom Lane
- Re: [GENERAL] Hash join in 8.3 André Volpato
- Re: [GENERAL] Hash join in 8.3 André Volpato
- Re: [GENERAL] Hash join in 8.3 Gregory Stark
- Re: [GENERAL] Hash join in 8.3 André Volpato
