

======================================================================
 QUERY FILE: 13 (13.sql)
 TIMESTAMP:  Mon Dec 15 19:01:02 CST 2025
======================================================================

--- [ CONFIG: dp ] ----------------------------------------
Limit  (cost=83437.90..83437.90 rows=1 width=16) (actual time=1070.129..1070.133 rows=1.00 loops=1)
  Output: (count(orders.o_orderkey)), (count(*))
  Buffers: shared hit=29722
  ->  Sort  (cost=83437.90..83438.40 rows=200 width=16) (actual time=1070.127..1070.131 rows=1.00 loops=1)
        Output: (count(orders.o_orderkey)), (count(*))
        Sort Key: (count(*)) DESC, (count(orders.o_orderkey)) DESC
        Sort Method: top-N heapsort  Memory: 25kB
        Buffers: shared hit=29722
        ->  HashAggregate  (cost=83434.90..83436.90 rows=200 width=16) (actual time=1070.104..1070.110 rows=42.00 loops=1)
              Output: (count(orders.o_orderkey)), count(*)
              Group Key: count(orders.o_orderkey)
              Batches: 1  Memory Usage: 32kB
              Buffers: shared hit=29719
              ->  HashAggregate  (cost=79684.90..81184.90 rows=150000 width=12) (actual time=1051.963..1060.991 rows=150000.00 loops=1)
                    Output: customer.c_custkey, count(orders.o_orderkey)
                    Group Key: customer.c_custkey
                    Batches: 1  Memory Usage: 12313kB
                    Buffers: shared hit=29719
                    ->  Hash Right Join  (cost=6969.00..72260.66 rows=1484848 width=8) (actual time=23.641..708.461 rows=1534025.00 loops=1)
                          Output: customer.c_custkey, orders.o_orderkey
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=29719
                          ->  Seq Scan on public.orders  (cost=0.00..44875.00 rows=1484848 width=8) (actual time=0.030..295.337 rows=1484020.00 loops=1)
                                Output: orders.o_orderkey, orders.o_custkey, orders.o_orderstatus, orders.o_totalprice, orders.o_orderdate, orders.o_orderpriority, orders.o_clerk, orders.o_shippriority, orders.o_comment
                                Filter: ((orders.o_comment)::text !~~ '%express%deposits%'::text)
                                Rows Removed by Filter: 15980
                                Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=4) (actual time=23.440..23.441 rows=150000.00 loops=1)
                                Output: customer.c_custkey
                                Buckets: 262144  Batches: 1  Memory Usage: 7322kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=4) (actual time=0.008..11.285 rows=150000.00 loops=1)
                                      Output: customer.c_custkey
                                      Buffers: shared hit=3594
Planning:
  Buffers: shared hit=127 read=1
Planning Time: 0.720 ms
Execution Time: 1070.816 ms

--- [ CONFIG: goo_rows ] ----------------------------------------
Limit  (cost=83437.90..83437.90 rows=1 width=16) (actual time=967.692..967.694 rows=1.00 loops=1)
  Output: (count(orders.o_orderkey)), (count(*))
  Buffers: shared hit=29722
  ->  Sort  (cost=83437.90..83438.40 rows=200 width=16) (actual time=967.691..967.693 rows=1.00 loops=1)
        Output: (count(orders.o_orderkey)), (count(*))
        Sort Key: (count(*)) DESC, (count(orders.o_orderkey)) DESC
        Sort Method: top-N heapsort  Memory: 25kB
        Buffers: shared hit=29722
        ->  HashAggregate  (cost=83434.90..83436.90 rows=200 width=16) (actual time=967.672..967.676 rows=42.00 loops=1)
              Output: (count(orders.o_orderkey)), count(*)
              Group Key: count(orders.o_orderkey)
              Batches: 1  Memory Usage: 32kB
              Buffers: shared hit=29719
              ->  HashAggregate  (cost=79684.90..81184.90 rows=150000 width=12) (actual time=950.905..959.041 rows=150000.00 loops=1)
                    Output: customer.c_custkey, count(orders.o_orderkey)
                    Group Key: customer.c_custkey
                    Batches: 1  Memory Usage: 12313kB
                    Buffers: shared hit=29719
                    ->  Hash Right Join  (cost=6969.00..72260.66 rows=1484848 width=8) (actual time=21.361..655.436 rows=1534025.00 loops=1)
                          Output: customer.c_custkey, orders.o_orderkey
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=29719
                          ->  Seq Scan on public.orders  (cost=0.00..44875.00 rows=1484848 width=8) (actual time=0.020..290.729 rows=1484020.00 loops=1)
                                Output: orders.o_orderkey, orders.o_custkey, orders.o_orderstatus, orders.o_totalprice, orders.o_orderdate, orders.o_orderpriority, orders.o_clerk, orders.o_shippriority, orders.o_comment
                                Filter: ((orders.o_comment)::text !~~ '%express%deposits%'::text)
                                Rows Removed by Filter: 15980
                                Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=4) (actual time=21.163..21.163 rows=150000.00 loops=1)
                                Output: customer.c_custkey
                                Buckets: 262144  Batches: 1  Memory Usage: 7322kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=4) (actual time=0.006..12.264 rows=150000.00 loops=1)
                                      Output: customer.c_custkey
                                      Buffers: shared hit=3594
Planning:
  Buffers: shared hit=128
Planning Time: 0.324 ms
Execution Time: 968.458 ms

--- [ CONFIG: goo_selectivity ] ----------------------------------------
Limit  (cost=83437.90..83437.90 rows=1 width=16) (actual time=924.617..924.620 rows=1.00 loops=1)
  Output: (count(orders.o_orderkey)), (count(*))
  Buffers: shared hit=29722
  ->  Sort  (cost=83437.90..83438.40 rows=200 width=16) (actual time=924.615..924.619 rows=1.00 loops=1)
        Output: (count(orders.o_orderkey)), (count(*))
        Sort Key: (count(*)) DESC, (count(orders.o_orderkey)) DESC
        Sort Method: top-N heapsort  Memory: 25kB
        Buffers: shared hit=29722
        ->  HashAggregate  (cost=83434.90..83436.90 rows=200 width=16) (actual time=924.597..924.603 rows=42.00 loops=1)
              Output: (count(orders.o_orderkey)), count(*)
              Group Key: count(orders.o_orderkey)
              Batches: 1  Memory Usage: 32kB
              Buffers: shared hit=29719
              ->  HashAggregate  (cost=79684.90..81184.90 rows=150000 width=12) (actual time=906.713..915.670 rows=150000.00 loops=1)
                    Output: customer.c_custkey, count(orders.o_orderkey)
                    Group Key: customer.c_custkey
                    Batches: 1  Memory Usage: 12313kB
                    Buffers: shared hit=29719
                    ->  Hash Right Join  (cost=6969.00..72260.66 rows=1484848 width=8) (actual time=19.013..620.692 rows=1534025.00 loops=1)
                          Output: customer.c_custkey, orders.o_orderkey
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=29719
                          ->  Seq Scan on public.orders  (cost=0.00..44875.00 rows=1484848 width=8) (actual time=0.013..281.807 rows=1484020.00 loops=1)
                                Output: orders.o_orderkey, orders.o_custkey, orders.o_orderstatus, orders.o_totalprice, orders.o_orderdate, orders.o_orderpriority, orders.o_clerk, orders.o_shippriority, orders.o_comment
                                Filter: ((orders.o_comment)::text !~~ '%express%deposits%'::text)
                                Rows Removed by Filter: 15980
                                Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=4) (actual time=18.830..18.831 rows=150000.00 loops=1)
                                Output: customer.c_custkey
                                Buckets: 262144  Batches: 1  Memory Usage: 7322kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=4) (actual time=0.006..10.705 rows=150000.00 loops=1)
                                      Output: customer.c_custkey
                                      Buffers: shared hit=3594
Planning:
  Buffers: shared hit=128
Planning Time: 0.309 ms
Execution Time: 925.552 ms

--- [ CONFIG: goo_result_size ] ----------------------------------------
Limit  (cost=83437.90..83437.90 rows=1 width=16) (actual time=903.134..903.135 rows=1.00 loops=1)
  Output: (count(orders.o_orderkey)), (count(*))
  Buffers: shared hit=29722
  ->  Sort  (cost=83437.90..83438.40 rows=200 width=16) (actual time=903.132..903.134 rows=1.00 loops=1)
        Output: (count(orders.o_orderkey)), (count(*))
        Sort Key: (count(*)) DESC, (count(orders.o_orderkey)) DESC
        Sort Method: top-N heapsort  Memory: 25kB
        Buffers: shared hit=29722
        ->  HashAggregate  (cost=83434.90..83436.90 rows=200 width=16) (actual time=903.116..903.119 rows=42.00 loops=1)
              Output: (count(orders.o_orderkey)), count(*)
              Group Key: count(orders.o_orderkey)
              Batches: 1  Memory Usage: 32kB
              Buffers: shared hit=29719
              ->  HashAggregate  (cost=79684.90..81184.90 rows=150000 width=12) (actual time=886.404..894.515 rows=150000.00 loops=1)
                    Output: customer.c_custkey, count(orders.o_orderkey)
                    Group Key: customer.c_custkey
                    Batches: 1  Memory Usage: 12313kB
                    Buffers: shared hit=29719
                    ->  Hash Right Join  (cost=6969.00..72260.66 rows=1484848 width=8) (actual time=20.178..610.799 rows=1534025.00 loops=1)
                          Output: customer.c_custkey, orders.o_orderkey
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=29719
                          ->  Seq Scan on public.orders  (cost=0.00..44875.00 rows=1484848 width=8) (actual time=0.020..279.558 rows=1484020.00 loops=1)
                                Output: orders.o_orderkey, orders.o_custkey, orders.o_orderstatus, orders.o_totalprice, orders.o_orderdate, orders.o_orderpriority, orders.o_clerk, orders.o_shippriority, orders.o_comment
                                Filter: ((orders.o_comment)::text !~~ '%express%deposits%'::text)
                                Rows Removed by Filter: 15980
                                Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=4) (actual time=19.979..19.979 rows=150000.00 loops=1)
                                Output: customer.c_custkey
                                Buckets: 262144  Batches: 1  Memory Usage: 7322kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=4) (actual time=0.007..11.203 rows=150000.00 loops=1)
                                      Output: customer.c_custkey
                                      Buffers: shared hit=3594
Planning:
  Buffers: shared hit=128
Planning Time: 0.338 ms
Execution Time: 903.690 ms

--- [ CONFIG: goo_cost ] ----------------------------------------
Limit  (cost=83437.90..83437.90 rows=1 width=16) (actual time=901.596..901.598 rows=1.00 loops=1)
  Output: (count(orders.o_orderkey)), (count(*))
  Buffers: shared hit=29722
  ->  Sort  (cost=83437.90..83438.40 rows=200 width=16) (actual time=901.595..901.596 rows=1.00 loops=1)
        Output: (count(orders.o_orderkey)), (count(*))
        Sort Key: (count(*)) DESC, (count(orders.o_orderkey)) DESC
        Sort Method: top-N heapsort  Memory: 25kB
        Buffers: shared hit=29722
        ->  HashAggregate  (cost=83434.90..83436.90 rows=200 width=16) (actual time=901.574..901.579 rows=42.00 loops=1)
              Output: (count(orders.o_orderkey)), count(*)
              Group Key: count(orders.o_orderkey)
              Batches: 1  Memory Usage: 32kB
              Buffers: shared hit=29719
              ->  HashAggregate  (cost=79684.90..81184.90 rows=150000 width=12) (actual time=884.029..892.685 rows=150000.00 loops=1)
                    Output: customer.c_custkey, count(orders.o_orderkey)
                    Group Key: customer.c_custkey
                    Batches: 1  Memory Usage: 12313kB
                    Buffers: shared hit=29719
                    ->  Hash Right Join  (cost=6969.00..72260.66 rows=1484848 width=8) (actual time=19.531..609.560 rows=1534025.00 loops=1)
                          Output: customer.c_custkey, orders.o_orderkey
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=29719
                          ->  Seq Scan on public.orders  (cost=0.00..44875.00 rows=1484848 width=8) (actual time=0.015..279.984 rows=1484020.00 loops=1)
                                Output: orders.o_orderkey, orders.o_custkey, orders.o_orderstatus, orders.o_totalprice, orders.o_orderdate, orders.o_orderpriority, orders.o_clerk, orders.o_shippriority, orders.o_comment
                                Filter: ((orders.o_comment)::text !~~ '%express%deposits%'::text)
                                Rows Removed by Filter: 15980
                                Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=4) (actual time=19.364..19.364 rows=150000.00 loops=1)
                                Output: customer.c_custkey
                                Buckets: 262144  Batches: 1  Memory Usage: 7322kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=4) (actual time=0.005..10.728 rows=150000.00 loops=1)
                                      Output: customer.c_custkey
                                      Buffers: shared hit=3594
Planning:
  Buffers: shared hit=128
Planning Time: 0.302 ms
Execution Time: 902.048 ms

--- [ CONFIG: geqo ] ----------------------------------------
Limit  (cost=83437.90..83437.90 rows=1 width=16) (actual time=918.197..918.201 rows=1.00 loops=1)
  Output: (count(orders.o_orderkey)), (count(*))
  Buffers: shared hit=29722
  ->  Sort  (cost=83437.90..83438.40 rows=200 width=16) (actual time=918.196..918.199 rows=1.00 loops=1)
        Output: (count(orders.o_orderkey)), (count(*))
        Sort Key: (count(*)) DESC, (count(orders.o_orderkey)) DESC
        Sort Method: top-N heapsort  Memory: 25kB
        Buffers: shared hit=29722
        ->  HashAggregate  (cost=83434.90..83436.90 rows=200 width=16) (actual time=918.179..918.186 rows=42.00 loops=1)
              Output: (count(orders.o_orderkey)), count(*)
              Group Key: count(orders.o_orderkey)
              Batches: 1  Memory Usage: 32kB
              Buffers: shared hit=29719
              ->  HashAggregate  (cost=79684.90..81184.90 rows=150000 width=12) (actual time=901.266..909.598 rows=150000.00 loops=1)
                    Output: customer.c_custkey, count(orders.o_orderkey)
                    Group Key: customer.c_custkey
                    Batches: 1  Memory Usage: 12313kB
                    Buffers: shared hit=29719
                    ->  Hash Right Join  (cost=6969.00..72260.66 rows=1484848 width=8) (actual time=20.561..620.035 rows=1534025.00 loops=1)
                          Output: customer.c_custkey, orders.o_orderkey
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=29719
                          ->  Seq Scan on public.orders  (cost=0.00..44875.00 rows=1484848 width=8) (actual time=0.019..279.962 rows=1484020.00 loops=1)
                                Output: orders.o_orderkey, orders.o_custkey, orders.o_orderstatus, orders.o_totalprice, orders.o_orderdate, orders.o_orderpriority, orders.o_clerk, orders.o_shippriority, orders.o_comment
                                Filter: ((orders.o_comment)::text !~~ '%express%deposits%'::text)
                                Rows Removed by Filter: 15980
                                Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=4) (actual time=20.345..20.345 rows=150000.00 loops=1)
                                Output: customer.c_custkey
                                Buckets: 262144  Batches: 1  Memory Usage: 7322kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=4) (actual time=0.009..11.082 rows=150000.00 loops=1)
                                      Output: customer.c_custkey
                                      Buffers: shared hit=3594
Planning:
  Buffers: shared hit=128
Planning Time: 0.466 ms
Execution Time: 919.010 ms
