Mongodb asynchronous Inserts -


i using mongo3.0 spring data have question on insert-async read "mongodb inserts asynchronous mongo db has asynchronous insert/update/remove operations. means when issue insert operation fire , forget operation database not reply status of insert operation."

does mean records cached , mongo decides when insert(physically write disk) or records inserted instantly there no confirmation on insert.

ref:-"https://mongodb.github.io/node-mongodb-native/api-articles/nodekoarticle1.html"

does mean records cached , mongo decides when insert(physically write disk) or records inserted instantly there no confirmation on insert.

no caching involved. record insert command sent , there no return value know status. it's fire , forget: send command, that's it.

  • the advantage application faster, since not wait confirmation.
  • the disadvantage don't feedback whether insert successful or not.

however, mentioned in answer, can use write concern option. there different level can set:

  • unacknowledged (your question refering this)
  • acknowledged
  • journaled
  • replica acknowledged

you can read in mongodb documentation.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -