performance improvement: ingest data directly from tmp file
This commit is contained in:
@@ -216,13 +216,12 @@ def send_csv(zip, file_in_zip, csvSettings):
|
||||
'settings': ('csvReaderSettings.json', csvSettings , 'application/json')
|
||||
})
|
||||
|
||||
r = requests.post('http://localhost:17333/api/data?waitUntilFinished=true', data=m,
|
||||
r = requests.post('http://localhost:17333/api/data', data=m,
|
||||
headers={
|
||||
'Accept': 'text/plain, application/json, application/*+json, */*',
|
||||
'Content-Type': m.content_type.replace("form-data", "mixed;charset=UTF-8")
|
||||
})
|
||||
print("response:")
|
||||
print(r)
|
||||
print("response: %s" % r)
|
||||
finally:
|
||||
shutil.rmtree(tmp_folder)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user