Skip to content

Commit

Permalink
updated as per jira comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ljsinclair committed Jan 2, 2024
1 parent 5a26724 commit 2dde1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tools/python-client-library/python-client-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ def upload_data_bulk(key_from: int, key_to: int):
if result.ok:
print("inserted " + str(result.rows_affected) + " rows in " + str(etime+1-stime) + " seconds.")
else:
print(result.error.description)
print(result.error)
return result.ok

# create a demo table and load million rows
def run(batchSize: int):
# create demo table
result=client.query(sql="CREATE TABLE demo_upload(_id ID, keycol INT, val1 STRING, val2 STRING)")
if not result.ok:
print(result.error.description)
print(result.error)
# insert batchSize rows per insert for 1000 times
n=int(1000000/batchSize)
l=1
Expand Down

0 comments on commit 2dde1a2

Please sign in to comment.