gerald-lindsly / rmongodb

R driver for MongoDB
http://cnub.org/rmongodb.ashx
Apache License 2.0
83 stars 44 forks source link

Persistent Connections #2

Closed dchapsky closed 12 years ago

dchapsky commented 12 years ago

Is it possible to create persistent R connections across R sessions?

gerald-lindsly commented 12 years ago

No, a connection has to be established by mongo.create() before communicating with the server. I am unsure of your reason for asking. Is establishing a connection taking too long?

dchapsky commented 12 years ago

My use case involves running multiple R scripts so I didn't want to have to reconnect for each script. But instead I'll probably just set up a persistent R instance so I can keep using the same connection. Thanks for the response