클라우드 컴퓨팅 & NoSQL/CouchBase

Couchbase bulk insert

Terry Cho 2014. 7. 11. 16:50
BulkInsert
C:\dev\tools\couchbase\server\bin\tools>cbdocloader -u Administrator -p asdf1234
 -n 127.0.0.1:8091 -b mybucket .\json_sample
{'username': 'Administrator', 'node': '127.0.0.1:8091', 'password': 'asdf1234',
'bucket': 'mybucket', 'ram_quota': 100} ['.\\json_sample']
[2014-07-11 10:20:09,105] - [rest_client] [4288] - INFO - existing buckets : [u'
beer-sample', u'blog', u'default', u'filtering', u'mybucket', u'sortedkey']
[2014-07-11 10:20:09,107] - [rest_client] [4288] - INFO - found bucket mybucket
done


JSON 파일은 ./json_sample/xxx.json 들로 쭈욱 저장되어 있음

{

"_id":"bulkuser001",

"name":"terry"

}



그리드형