My MongoDB scratchpad

Importing bulk json files using mongoimport: A bash script is needed for doing this. An example bash script: FILES=/Users/arefindk/datasets/gitnet/* for f in $FILES do echo "Importing file $f..." mongoimport --db github_watch --collection gt_watch --file $f echo "Done $f" done Bulk convert a string field…