{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/871","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/871/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/871/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/871/events","html_url":"https://github.com/cockroachdb/cockroach/pull/871","id":72286615,"number":871,"title":"[DO NOT MERGE] Experimenting with a new client API.","user":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockroachdb/cockroach/labels/PTAL","name":"PTAL","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-30T21:28:32Z","updated_at":"2015-05-01T17:08:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/871","html_url":"https://github.com/cockroachdb/cockroach/pull/871","diff_url":"https://github.com/cockroachdb/cockroach/pull/871.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/871.patch"},"body":"Not finished, but ready for comments."},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/98179038","html_url":"https://github.com/cockroachdb/cockroach/pull/871#issuecomment-98179038","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/871","id":98179038,"user":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T17:08:05Z","updated_at":"2015-05-01T17:08:05Z","body":"Constructing the `key->index` translation table will penalize users who don't use it unless we only build it on demand. And what to do if there are multiple identical keys? For example, `Get(\"a\", \"a\")`. Yeah, users shouldn't do that, but they will.\r\n\r\nWould `result.ValueBytes()` return the bytes for row `0`? Maybe that should be `result.ValueBytes(n)`.\r\n\r\nBigger question: how should timestamps be specified for requests? One option would be to add `At` variants of the ops: `GetAt`, `ScanAt`, etc. Seems excessive. Another option would be to only allow specifying timestamps at the batch level. That is, add `Batch.Timestamp` and propagate that timestamp to all of the requests."}}