![](/img/trans.png)
[英]“not authorized to execute this request” using the arangodb java driver
[英]Bulk insert document in arangodb using java 4.1.3 driver
有什么方法可以將文檔批量插入到集合中,以及批量插入圖形中的頂點和邊
請分享將批量文檔插入集合和圖形的最佳方法
使用Java驅動程序4.1.0或4.1.3
批量插入文檔的最佳方式是方法insertDocuments(Collection<T>)
或importDocuments(Collection<T>)
在類ArangoCollection
。
兩種方法之間的主要區別在於,使用importDocuments
可以決定重復文檔的處理方式(例如,更新,替換現有文檔)
final ArangoDB arangoDB = new ArangoDB.Builder().build();
Collection<MyDocument> docs = new ArrayList<MyDocument>();
// add documents to docs
arangoDB.db().collection("myCollection").insertDocuments(docs);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.