Skip to content

Commit 3413eba

Browse files
author
James William Pye
committed
Use the new chunks() interface.
1 parent 2ea03d2 commit 3413eba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

postgresql/test/perf_query_io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def insertSamples(count, insert_records):
3636
)
3737
)
3838

39-
def timeTupleRead(portal):
39+
def timeTupleRead(ps):
4040
loops = 0
4141
tuples = 0
4242
genesis = time.time()
43-
for x in portal.chunks:
43+
for x in ps.chunks():
4444
loops += 1
4545
tuples += len(x)
4646
finalis = time.time()
@@ -68,7 +68,7 @@ def main(count):
6868
select_records = prepare("SELECT * FROM samples")
6969
try:
7070
insertSamples(count, insert_records)
71-
timeTupleRead(select_records())
71+
timeTupleRead(select_records)
7272
finally:
7373
execute("DROP TABLE samples")
7474

0 commit comments

Comments
 (0)