I\'m using Node.js with MongoDB, I\'m also using Monk for db access. I have the below code :
console.time(\"start\"); collection.findOne({name: \"jason\"},
Answer to 1: Yes, it is because node is async. The part where it logs names is executed only when the first findOne returns, whereas the file was saved is executed straight away.
findOne
the file was saved