{"action":"created","issue":{"url":"https://api.github.com/repos/ezweb/dblinker/issues/14","labels_url":"https://api.github.com/repos/ezweb/dblinker/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ezweb/dblinker/issues/14/comments","events_url":"https://api.github.com/repos/ezweb/dblinker/issues/14/events","html_url":"https://github.com/ezweb/dblinker/issues/14","id":80526337,"number":14,"title":"Option to get back on slave after a query on master","user":{"login":"mathroc","id":291531,"avatar_url":"https://avatars.githubusercontent.com/u/291531?v=3","gravatar_id":"","url":"https://api.github.com/users/mathroc","html_url":"https://github.com/mathroc","followers_url":"https://api.github.com/users/mathroc/followers","following_url":"https://api.github.com/users/mathroc/following{/other_user}","gists_url":"https://api.github.com/users/mathroc/gists{/gist_id}","starred_url":"https://api.github.com/users/mathroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathroc/subscriptions","organizations_url":"https://api.github.com/users/mathroc/orgs","repos_url":"https://api.github.com/users/mathroc/repos","events_url":"https://api.github.com/users/mathroc/events{/privacy}","received_events_url":"https://api.github.com/users/mathroc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ezweb/dblinker/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T12:46:44Z","updated_at":"2015-09-18T11:03:31Z","closed_at":"2015-09-18T11:03:31Z","body":"When the `MasterSlavesConnection` makes a write query on the master server, all remaining queries (read queries included) are also sent to the master server.\r\nWe should have an option (in the constructor) to change that behavior so that read queries are always sent to a slave server unless `connectToMaster` have been called"},"comment":{"url":"https://api.github.com/repos/ezweb/dblinker/issues/comments/141418731","html_url":"https://github.com/ezweb/dblinker/issues/14#issuecomment-141418731","issue_url":"https://api.github.com/repos/ezweb/dblinker/issues/14","id":141418731,"user":{"login":"mathroc","id":291531,"avatar_url":"https://avatars.githubusercontent.com/u/291531?v=3","gravatar_id":"","url":"https://api.github.com/users/mathroc","html_url":"https://github.com/mathroc","followers_url":"https://api.github.com/users/mathroc/followers","following_url":"https://api.github.com/users/mathroc/following{/other_user}","gists_url":"https://api.github.com/users/mathroc/gists{/gist_id}","starred_url":"https://api.github.com/users/mathroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathroc/subscriptions","organizations_url":"https://api.github.com/users/mathroc/orgs","repos_url":"https://api.github.com/users/mathroc/repos","events_url":"https://api.github.com/users/mathroc/events{/privacy}","received_events_url":"https://api.github.com/users/mathroc/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T11:03:31Z","updated_at":"2015-09-18T11:03:31Z","body":"replication delay might pose a problem here, eg:\r\n\r\n```php\r\n$connection->insert(\"sometable\", [\"name\" => \"toto\"]); // on master\r\n$connection->fetch(\"SELECT * FROM sometable WHERE name = 'toto'\"); // might not yet be on the slave server\r\n```\r\n"}}