{"action":"created","issue":{"url":"https://api.github.com/repos/dgraph-io/dgraph/issues/41","repository_url":"https://api.github.com/repos/dgraph-io/dgraph","labels_url":"https://api.github.com/repos/dgraph-io/dgraph/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/dgraph-io/dgraph/issues/41/comments","events_url":"https://api.github.com/repos/dgraph-io/dgraph/issues/41/events","html_url":"https://github.com/dgraph-io/dgraph/pull/41","id":137125619,"number":41,"title":"Distributed mutations from DirectedEdges","user":{"login":"manishrjain","id":1782324,"avatar_url":"https://avatars.githubusercontent.com/u/1782324?v=3","gravatar_id":"","url":"https://api.github.com/users/manishrjain","html_url":"https://github.com/manishrjain","followers_url":"https://api.github.com/users/manishrjain/followers","following_url":"https://api.github.com/users/manishrjain/following{/other_user}","gists_url":"https://api.github.com/users/manishrjain/gists{/gist_id}","starred_url":"https://api.github.com/users/manishrjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishrjain/subscriptions","organizations_url":"https://api.github.com/users/manishrjain/orgs","repos_url":"https://api.github.com/users/manishrjain/repos","events_url":"https://api.github.com/users/manishrjain/events{/privacy}","received_events_url":"https://api.github.com/users/manishrjain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dgraph-io/dgraph/labels/feature","name":"feature","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"ashwin95r","id":5701997,"avatar_url":"https://avatars.githubusercontent.com/u/5701997?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwin95r","html_url":"https://github.com/ashwin95r","followers_url":"https://api.github.com/users/ashwin95r/followers","following_url":"https://api.github.com/users/ashwin95r/following{/other_user}","gists_url":"https://api.github.com/users/ashwin95r/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwin95r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwin95r/subscriptions","organizations_url":"https://api.github.com/users/ashwin95r/orgs","repos_url":"https://api.github.com/users/ashwin95r/repos","events_url":"https://api.github.com/users/ashwin95r/events{/privacy}","received_events_url":"https://api.github.com/users/ashwin95r/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dgraph-io/dgraph/milestones/1","html_url":"https://github.com/dgraph-io/dgraph/milestones/v0.2","labels_url":"https://api.github.com/repos/dgraph-io/dgraph/milestones/1/labels","id":1449157,"number":1,"title":"v0.2","description":"","creator":{"login":"manishrjain","id":1782324,"avatar_url":"https://avatars.githubusercontent.com/u/1782324?v=3","gravatar_id":"","url":"https://api.github.com/users/manishrjain","html_url":"https://github.com/manishrjain","followers_url":"https://api.github.com/users/manishrjain/followers","following_url":"https://api.github.com/users/manishrjain/following{/other_user}","gists_url":"https://api.github.com/users/manishrjain/gists{/gist_id}","starred_url":"https://api.github.com/users/manishrjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishrjain/subscriptions","organizations_url":"https://api.github.com/users/manishrjain/orgs","repos_url":"https://api.github.com/users/manishrjain/repos","events_url":"https://api.github.com/users/manishrjain/events{/privacy}","received_events_url":"https://api.github.com/users/manishrjain/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2015-12-08T03:47:22Z","updated_at":"2016-02-29T03:19:04Z","due_on":"2016-02-28T13:00:00Z","closed_at":null},"comments":4,"created_at":"2016-02-29T01:48:31Z","updated_at":"2016-02-29T05:40:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dgraph-io/dgraph/pulls/41","html_url":"https://github.com/dgraph-io/dgraph/pull/41","diff_url":"https://github.com/dgraph-io/dgraph/pull/41.diff","patch_url":"https://github.com/dgraph-io/dgraph/pull/41.patch"},"body":"Provide a function `MutateOverNetwork`, which would divide DirectedEdges across workers, based on fingerprint of `Attribute`, and execute them via goroutines.\r\n\r\nThe goroutine would run the mutation locally, if instanceIdx is the same as idx generated from Attribute. Otherwise, it would make network calls to send it to the right instances.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/dgraph-io/dgraph/41)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/dgraph-io/dgraph/issues/comments/190054744","html_url":"https://github.com/dgraph-io/dgraph/pull/41#issuecomment-190054744","issue_url":"https://api.github.com/repos/dgraph-io/dgraph/issues/41","id":190054744,"user":{"login":"ashwin95r","id":5701997,"avatar_url":"https://avatars.githubusercontent.com/u/5701997?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwin95r","html_url":"https://github.com/ashwin95r","followers_url":"https://api.github.com/users/ashwin95r/followers","following_url":"https://api.github.com/users/ashwin95r/following{/other_user}","gists_url":"https://api.github.com/users/ashwin95r/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwin95r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwin95r/subscriptions","organizations_url":"https://api.github.com/users/ashwin95r/orgs","repos_url":"https://api.github.com/users/ashwin95r/repos","events_url":"https://api.github.com/users/ashwin95r/events{/privacy}","received_events_url":"https://api.github.com/users/ashwin95r/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T05:40:19Z","updated_at":"2016-02-29T05:40:19Z","body":"\n\n\n\nReviewed 2 of 2 files at r2.\nReview status: 6 of 7 files reviewed at latest revision, 2 unresolved discussions.\n\n---\n\n*[worker/mutation.go, line 62 \\[r1\\]](https://reviewable.io:443/reviews/dgraph-io/dgraph/41#-KBfXWatW0l3dbrd2afd:-KBfXWauW3nqgjLEbvDl:1377350481) ([raw file](https://github.com/dgraph-io/dgraph/blob/da0e9e19b4aad9113bdbf7dd328807f394e25ae6/worker/mutation.go#L62)):*\nWhere is idx defined?\n\n---\n\n\n*Comments from the [review on Reviewable.io](https://reviewable.io:443/reviews/dgraph-io/dgraph/41)*\n<!-- Sent from Reviewable.io -->\n"}}