explain ( analyze , buffers ) UPDATE pgbench_accounts SET abalance = abalance + 100 WHERE aid = 5000; Update on pgbench_accounts (cost=0.57..2.79 rows=0 width=0) (actual time=0.550..0.551 rows=0 loops=1) Buffers: shared hit=12 dirtied=2 -> Index Scan using pgbench_accounts_pkey on pgbench_accounts (cost=0.57..2.79 rows=1 width=10) (actual time=0.132..0.134 rows=1 loops=1) Index Cond: (aid = 5000) Buffers: shared hit=5 Planning: Buffers: shared hit=34 Planning Time: 0.370 ms Execution Time: 0.702 ms (9 rows) Update on pgbench_accounts (cost=0.57..2.79 rows=0 width=0) (actual time=0.117..0.117 rows=0 loops=1) Buffers: shared hit=8 -> Index Scan using pgbench_accounts_pkey on pgbench_accounts (cost=0.57..2.79 rows=1 width=10) (actual time=0.068..0.069 rows=1 loops=1) Index Cond: (aid = 5000) Buffers: shared hit=5 Planning Time: 0.111 ms Execution Time: 0.160 ms (7 rows) Update on pgbench_accounts (cost=0.57..2.79 rows=0 width=0) (actual time=0.099..0.100 rows=0 loops=1) Buffers: s
Почему при повторном UPDATE, dirted в плане выполнения не меняется ?
28 января28 янв
2
3 мин