Depends on what it is you want to actually accomplish... Honestly, MongoDB is pretty decent, and if the majority of your active data fits in memory, those pages in Mongo will be readily available. I would suggest starting by targeting mongo directly if that’s your desired back end... otherwise you will be creating a lot of work against your in-memory copy that may not work as well as mongo with indexes.
From: bodo Sent: Tuesday, August 13, 2013 4:24 PM To: [email protected] Subject: [nodejs] Keep data in memory and periodlly push to mongodb ??? Hi everyone, I'm doing a realtime game by javascript and node.js. I want to all the informations is saved in memory of machine (RAM) and periodly (for example 10 minutes), it pushs data to mongodb So if you want to search smt, if this thing is not in memory of machine and I search in mongodb. So do you have the method or the way to do that ? Thank you -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
