Sort (cost=717.34..717.59 rows=101 width=488) (actual time=7.761..7.774 rows=100 loops=1) Sort Key: t1.fivethous Sort Method: quicksort Memory: 77kB -> Hash Join (cost=230.47..713.98 rows=101 width=488) (actual
Sort Key: t1.fivethous SortMethod: quicksort Memory:77kB->HashJoin(cost=230.47..713.98rows=101width=488) (actualtime=0.711..7.427rows=100loops=1) Hash Cond: (t2.unique2=t1.unique2)->Seq Scanontenk2 t2 (cost=0.00..445.00rows=10000width=244) (actualtime=0.007..2.583rows=10000loops=1)...
(1)sort 算子,会显示排序信息 Sort Method代表排序的方法,包括quicksort(快排)和disksort(外排)。快排即内存够用时,所有的排序操作均在内存中完成,外排说明当前可用内存不足,需要下盘。 (2)hashjoin算子 Buckets:代表hash表中实际使用的桶的个数 Batches:代表hashjoin中实际分块的数量。如果Batches=1,则说明所有...
Sort (cost=717.34..717.59rows=101 width=488) (actualtime=7.761..7.774rows=100 loops=1) SortKey: t1.fivethous Sort Method: quicksort Memory: 77kB -> HashJoin (cost=230.47..713.98rows=101 width=488) (actualtime=0.711..7.427rows=100 loops=1) Hash Cond: (t2.unique2 = t1.unique2) -...
Sort Method: quicksort Memory: 77kB -> Hash Join (cost=230.47..713.98 rows=101 width=488) (actual time=0.711..7.427 rows=100 loops=1) Hash Cond: (t2.unique2 = t1.unique2) -> Seq Scan on tenk2 t2 (cost=0.00..445.00 rows=10000 width=244) (actual time=0.007..2.583 rows=10000 ...
Sort Key: t1.fivethous Sort Method: quicksort Memory: 77kB -> Hash Join (cost=230.47..713.98 rows=101 width=488) (actual time=0.711..7.427 rows=100 loops=1) Hash Cond: (t2.unique2 = t1.unique2) -> Seq Scan on tenk2 t2 (cost=0.00..445.00 rows=10000 width=244) (actual time=...
Sort Method: quicksort Memory:25kB -> Hash Join (cost=2.41..3.80rows=9width=57) (actualtime=0.194..0.214rows=7loops=1) Hash Cond: ((tur.role_id)::text= (tr.role_id)::text) -> Hash Join (cost=1.24..2.48rows=9width=19) (actualtime=0.063..0.076rows=7loops=1) ...
访问方法(Access Method):表示查询使用的访问方法,如Seq Scan(顺序扫描)、Index Scan(索引扫描)等。 过滤条件(Filter):表示查询中的过滤条件,用于筛选满足条件的数据。 排序方式(Sort Method):表示排序操作使用的方法,如Quick Sort、External Sort等。 通过分析EXPLAIN命令的输出结果,可以确定查询语句的执行计划是否高效...
loops=1) Sort Key: t1.fivethous Sort Method: quicksort Memory: 77kB -> Hash Join (cost=230.47..713.98 rows=101 width=488) (actual time=0.711..7.427 rows=100 loops=1) Hash Cond: (t2.unique2 = t1.unique2) -> Seq Scan on tenk2 t2 (cost...
(1)sort 算子,会显示排序信息 Sort Method代表排序的方法,包括quicksort(快排)和disksort(外排)。快排即内存够用时,所有的排序操作均在内存中完成,外排说明当前可用内存不足,需要下盘。 (2)hashjoin算子 Buckets:代表hash表中实际使用的桶的个数 Batches:代表hashjoin中实际分块的数量。如果Batches=1,则说明所有...