Degrading performance of mongoldb document updates as record grows
问题 I have an iOS application which sends batches of data to an API endpoint which stores the data into a mongodb database. My data is modeled like: { "_id" : ObjectId, "device_id" : Uuid, "rtfb_status": bool, "repetitions" : [ { "session_id" : Uuid, "set_id" : Uuid, "level" : String, "exercise" : String, "number" : i32, "rom" : f64, "duration" : f64, "time" : i64 }, ..., ], "imu_data": [ { "session_id": Uuid, "data": [ { "acc" : { "y" : f64, "z" : f64, "x" : f64, "time" : i64, }, "gyro" : { "y"