db.events.update(
{upload:0},
{$set:{upload:1}},
{multi:true}
)
即使我只是用另一個整數替換整數,我仍然收到以下錯誤。 Cannot change the size of a document in a capped collection: 402 != 406
我試圖用Mongoid創建一個capped集合。我有一個定義如下: class Customer
include Mongoid::Document
store_in(collection: 'customers')
field: n, type: String, as: :name
field: a, type: String, as: :address