Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Import Script: add option to not use bulk import #141

Open
nichtich opened this issue Mar 15, 2021 · 1 comment
Open

Import Script: add option to not use bulk import #141

nichtich opened this issue Mar 15, 2021 · 1 comment
Labels
feature Additional functionality

Comments

@nichtich
Copy link
Member

The import script uses bulk import so record that cannot be imported are silently ignored. Add an option such as --individual to import records one by one and emit errors. Result should be the similar to iterating over records and calling

curl -H "Content-Type: application/json" -d@record.json -X POST http://localhost:3000/data

for each record but the latter requires write endpoint to be enabled.

@nichtich nichtich added the feature Additional functionality label Mar 15, 2021
@stefandesu
Copy link
Member

We could also import records one by one by default and add a flag --bulk to do bulk import. This might be more like what you'd expect if you used the import script.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature Additional functionality
Projects
None yet
Development

No branches or pull requests

2 participants