1
Hash Join vs Hash Semi Join
PostgreSQL 9.2 ฉันพยายามที่จะเข้าใจความแตกต่างระหว่างและเพียงแค่Hash Semi JoinHash Join นี่คือสองคำค้นหา: ผม EXPLAIN ANALYZE SELECT * FROM orders WHERE customerid IN (SELECT customerid FROM customers WHERE state='MD'); Hash Semi Join (cost=740.34..994.61 rows=249 width=30) (actual time=2.684..4.520 rows=120 loops=1) Hash Cond: (orders.customerid = customers.customerid) -> Seq Scan on orders (cost=0.00..220.00 rows=12000 width=30) (actual time=0.004..0.743 rows=12000 loops=1) …