{"action":"created","issue":{"url":"https://api.github.com/repos/watson/mongodown/issues/3","labels_url":"https://api.github.com/repos/watson/mongodown/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/watson/mongodown/issues/3/comments","events_url":"https://api.github.com/repos/watson/mongodown/issues/3/events","html_url":"https://github.com/watson/mongodown/pull/3","id":48856113,"number":3,"title":"attempt playing around with some option to re-use connection","user":{"login":"bewest","id":394179,"avatar_url":"https://avatars.githubusercontent.com/u/394179?v=3","gravatar_id":"","url":"https://api.github.com/users/bewest","html_url":"https://github.com/bewest","followers_url":"https://api.github.com/users/bewest/followers","following_url":"https://api.github.com/users/bewest/following{/other_user}","gists_url":"https://api.github.com/users/bewest/gists{/gist_id}","starred_url":"https://api.github.com/users/bewest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bewest/subscriptions","organizations_url":"https://api.github.com/users/bewest/orgs","repos_url":"https://api.github.com/users/bewest/repos","events_url":"https://api.github.com/users/bewest/events{/privacy}","received_events_url":"https://api.github.com/users/bewest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-15T00:06:43Z","updated_at":"2015-01-22T13:43:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/watson/mongodown/pulls/3","html_url":"https://github.com/watson/mongodown/pull/3","diff_url":"https://github.com/watson/mongodown/pull/3.diff","patch_url":"https://github.com/watson/mongodown/pull/3.patch"},"body":"Attempt to re-use an existing connection, via `conn`, and `collection` fields on the `options`."},"comment":{"url":"https://api.github.com/repos/watson/mongodown/issues/comments/71021476","html_url":"https://github.com/watson/mongodown/pull/3#issuecomment-71021476","issue_url":"https://api.github.com/repos/watson/mongodown/issues/3","id":71021476,"user":{"login":"watson","id":10602,"avatar_url":"https://avatars.githubusercontent.com/u/10602?v=3","gravatar_id":"","url":"https://api.github.com/users/watson","html_url":"https://github.com/watson","followers_url":"https://api.github.com/users/watson/followers","following_url":"https://api.github.com/users/watson/following{/other_user}","gists_url":"https://api.github.com/users/watson/gists{/gist_id}","starred_url":"https://api.github.com/users/watson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson/subscriptions","organizations_url":"https://api.github.com/users/watson/orgs","repos_url":"https://api.github.com/users/watson/repos","events_url":"https://api.github.com/users/watson/events{/privacy}","received_events_url":"https://api.github.com/users/watson/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T13:43:01Z","updated_at":"2015-01-22T13:43:01Z","body":"As far as I recall, a regular node mongodb client normally establishes around 5 connections when it connects to a server and a server running in default configuration is set up to allow 2048 simultaneous connections - so there should be room enough (you can check your server by typing `db.serverStatus().connections` in the console).\r\n\r\nFurthermore the connection object that a client returns differs depending on the client. Mongodown uses the thin wrapper [mongojs](https://github.com/mafintosh/mongojs), but if you use the native [mongodb](https://github.com/mongodb/node-mongodb-native) driver these two connection objects will not be compatible - so normally I would not recommend sharing the connection object + the cost of making two is close to nothing.\r\n\r\nBeing able to set the name of the mongodown collection is a nice feature though :)"}}