Hello Adam,
Thanks for the help.
I really appreciate your quick response and apologies for responding to you very late.
You said in your reply that "all operations are done in memory first for speed and then persisted separately" So my question is, if all the mongo write operation happens in memory and i have enough RAM in my server then we will never face too many disk I/O or CPU high load related issue on the server even when there are so many write operation are getting execute on the server because all the write operation are happening in memory. am i right?
Another one thing, do i need to do any extra configuration in mongo to do write operation in memory or mongo will automatically always do write operation in memory?
And if the write operation are happening in memory then how the data will get persist on the disk? do i need to do some extra configuration to persist data on disk or mongo will automatically persist data on disk separately?
And i am trying to understand how the write queries get execute in memory, does mongo put whole table in memory and then write queries get execute in memory as we do in mongo shell?
And my last question is, can we setup a architecture like this in mongo, where all the write queries will get execute on mongodb master server and all the read queries will get execute on slave servers as we do in MySQL, I know mongo db support replication but this url "
http://docs.mongodb.org/manual/core/read-preference/#replica-set-read-preference" says that, secondaries replicate operations from the primary with some delay so Ensure that your application can tolerate stale data if you choose to use a non-primary mode" And i have a application which require fully up-to-date data, so is it not possible for me to use this type of architecture?
Please tell me if you need any details.
Thanks.
Amit