1

我正在使用 couchbase lite 移动 iOS 框架进行缓存。有没有办法在 iOS 的 couchbase lite 中进行批量插入或批量更新?

4

1 回答 1

0

在 v1.x 中,您可以在CBLDatabase上使用 inTransaction。根据规格 -

Runs the block within a transaction. If the block returns NO, the transaction is rolled back.
    Use this when performing bulk write operations like multiple inserts/updates; it saves the 
    overhead of multiple SQLite commits, greatly improving performance.
于 2017-06-21T21:38:30.617 回答