From ed0e980d4b9c261f730e46505e0b96618fd4f89a Mon Sep 17 00:00:00 2001 From: Kevin Schaper Date: Tue, 21 Jun 2022 14:30:16 -0700 Subject: [PATCH] Edit to the curl upload command to stream rather than read the whole file into memory --- linkml_solr/utils/solr_bulkload.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linkml_solr/utils/solr_bulkload.py b/linkml_solr/utils/solr_bulkload.py index 4f3662e..b4b375a 100644 --- a/linkml_solr/utils/solr_bulkload.py +++ b/linkml_solr/utils/solr_bulkload.py @@ -35,7 +35,7 @@ def bulkload_file(f, ct = 'application/json' else: raise Exception(f'Unknown format {format}') - command = ['curl', url, '--data-binary', f'@{f}', '-H', f'Content-type:{ct}'] + command = ['curl', url, '-T', f'{f}', '-X', 'POST', '-H', f'Content-type:{ct}'] print(command) subprocess.run(command) diff --git a/pyproject.toml b/pyproject.toml index c64b812..1886f35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "linkml-solr" -version = "0.1.2" +version = "0.1.3" description = "" authors = ["Chris Mungall "]