{"action":"created","issue":{"url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/64","labels_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/64/comments","events_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/64/events","html_url":"https://github.com/neumino/rethinkdbdash/issues/64","id":57542157,"number":64,"title":"Improve toStream() docs","user":{"login":"pensierinmusica","id":3594037,"avatar_url":"https://avatars.githubusercontent.com/u/3594037?v=3","gravatar_id":"","url":"https://api.github.com/users/pensierinmusica","html_url":"https://github.com/pensierinmusica","followers_url":"https://api.github.com/users/pensierinmusica/followers","following_url":"https://api.github.com/users/pensierinmusica/following{/other_user}","gists_url":"https://api.github.com/users/pensierinmusica/gists{/gist_id}","starred_url":"https://api.github.com/users/pensierinmusica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pensierinmusica/subscriptions","organizations_url":"https://api.github.com/users/pensierinmusica/orgs","repos_url":"https://api.github.com/users/pensierinmusica/repos","events_url":"https://api.github.com/users/pensierinmusica/events{/privacy}","received_events_url":"https://api.github.com/users/pensierinmusica/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-13T00:30:37Z","updated_at":"2015-02-15T15:53:44Z","closed_at":"2015-02-15T13:24:37Z","body":"Hi,\r\n\r\nI think it'd be good to mention in the docs for `toStream()` that a db other than \"test\" needs to be specified by the user.\r\n\r\nHere's what I mean.\r\n\r\n**Current version:**\r\n\r\n```javascript\r\nvar logs = r.table('logs').toStream({transform: true, returnChanges: false});\r\n```\r\n\r\n**Suggested edit**\r\n\r\n```javascript\r\nvar logs = r.db('my_db_name').table('logs').toStream({transform: true, returnChanges: false});\r\n```\r\n\r\nI know it might seem superfluous, but I was getting some errors because it's easy to forget (since for most other operations the db is set through connection options instead).\r\n\r\n```javascript\r\nvar opts = {\r\n  host: 'localhost',\r\n  port: 28015,\r\n  db: 'my_db_name'\r\n}\r\n\r\nvar conn;\r\n\r\nr.connect(opts)\r\n  .then(function (connection) {\r\n    conn = connection;\r\n    return r.tableCreate('test').run(conn)\r\n  })\r\n  .then(function () {\r\n    // some operations...\r\n  });\r\n```\r\n\r\nIf you like I can generate a PR for this, let me know your thoughts.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/comments/74422763","html_url":"https://github.com/neumino/rethinkdbdash/issues/64#issuecomment-74422763","issue_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/64","id":74422763,"user":{"login":"neumino","id":1461947,"avatar_url":"https://avatars.githubusercontent.com/u/1461947?v=3","gravatar_id":"","url":"https://api.github.com/users/neumino","html_url":"https://github.com/neumino","followers_url":"https://api.github.com/users/neumino/followers","following_url":"https://api.github.com/users/neumino/following{/other_user}","gists_url":"https://api.github.com/users/neumino/gists{/gist_id}","starred_url":"https://api.github.com/users/neumino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumino/subscriptions","organizations_url":"https://api.github.com/users/neumino/orgs","repos_url":"https://api.github.com/users/neumino/repos","events_url":"https://api.github.com/users/neumino/events{/privacy}","received_events_url":"https://api.github.com/users/neumino/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T15:53:44Z","updated_at":"2015-02-15T15:53:44Z","body":"A few ideas:\r\n- Make sure that you are using the last version (1.16)\r\n- If you are using a Transform stream, make sure you pipe it to something\r\n\r\nIf it's none of the above, please open an issue with a snippet to reproduce this. I just piped 100k document and it worked fine."}}