ydb_json_import - import JSON-Files into YottaDB.
ydb_json_import [-v] [-k] [-t] file.json ^global [ subs1 [ subs2 ... ]]
ydb_json_import imports JSON-Files into YottaDB.
ydb_json_import parses the specified JSON-file completely before storing it to the database so only well-formed JSON-files get stored. In JSON-files the empty string is a valid key - you need to enable NULL_SUBSCRIPTS to handle such files or you may get YDB_ERR_NULSUBSC errors.
YDB_ERR_NULSUBSC
Be verbose
Kill the global reference before inserting.
Perform import within a transaction. This may fail with YDB_ERR_TRANS2BIG on huge data-sets. - carefully increasing the GLOBAL_BUFFER_COUNT may help.
GLOBAL_BUFFER_COUNT
On success ydb_json_import returns 0 and non-zero otherwise.
Copyright (c) 2018,2019 Stefan Traby <stefan@hello-penguin.com>
To install YottaDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YottaDB
CPAN shell
perl -MCPAN -e shell install YottaDB
For more information on module installation, please visit the detailed CPAN module installation guide.