mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
Mke ruff happy
This commit is contained in:
@@ -126,11 +126,19 @@ def test_lfc_async_prefetch_performance(neon_simple_env: NeonEnv, zenbenchmark):
|
||||
with zenbenchmark.record_duration("do_not_store_store_prefetch_results"):
|
||||
cur.execute("set neon.store_prefetch_result_in_lfc=off")
|
||||
for _ in range(n_iterations):
|
||||
cur.execute("select sum(balance) from (select balance from account where id between 1000 and 2000 limit 100) s")
|
||||
cur.execute("select sum(balance) from (select balance from account where id between 6000 and 7000 limit 100) s")
|
||||
cur.execute(
|
||||
"select sum(balance) from (select balance from account where id between 1000 and 2000 limit 100) s"
|
||||
)
|
||||
cur.execute(
|
||||
"select sum(balance) from (select balance from account where id between 6000 and 7000 limit 100) s"
|
||||
)
|
||||
|
||||
with zenbenchmark.record_duration("store_prefetch_results"):
|
||||
cur.execute("set neon.store_prefetch_result_in_lfc=on")
|
||||
for _ in range(n_iterations):
|
||||
cur.execute("select sum(balance) from (select balance from account where id between 1000 and 2000 limit 100) s")
|
||||
cur.execute("select sum(balance) from (select balance from account where id between 6000 and 7000 limit 100) s")
|
||||
cur.execute(
|
||||
"select sum(balance) from (select balance from account where id between 1000 and 2000 limit 100) s"
|
||||
)
|
||||
cur.execute(
|
||||
"select sum(balance) from (select balance from account where id between 6000 and 7000 limit 100) s"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user