2014-10-16 63 views

回答

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.