{"action":"created","comment":{"url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/comments/46002283","id":46002283,"diff_hunk":"@@ -156,4 +171,53 @@ cassandra-snapshot-store {\n       parallelism-max = 8\n     }\n   }\n+}\n+\n+# Configuration for the CassandraReadJournal\n+cassandra-query-journal {\n+  # Implementation class of the Cassandra ReadJournalProvider\n+  class = \"akka.persistence.cassandra.query.CassandraReadJournalProvider\"\n+  \n+  # Absolute path to the write journal plugin configuration section\n+  write-plugin = \"cassandra-journal\"\n+  \n+  # New events are retrieved (polled) with this interval.\n+  refresh-interval = 3s\n+  \n+  # How many events to fetch in one query (replay) and keep buffered until they\n+  # are delivered downstreams.\n+  max-buffer-size = 100\n+  \n+  # The fetch size of the Cassandra select statement\n+  fetch-size = 50\n+  \n+  # Read consistency level\n+  read-consistency = \"QUORUM\"\n+  \n+  # Configure this to the day (yyyyMMdd) when the system was first started.\n+  # When offset 0L is used it will look for events from this day and forward.\n+  first-time-bucket = \"20151120\"","path":"src/main/resources/reference.conf","position":58,"original_position":58,"commit_id":"94ed80613c08602c773d2575896c74258b520ebd","original_commit_id":"94ed80613c08602c773d2575896c74258b520ebd","user":{"login":"zapletal-martin","id":6018812,"avatar_url":"https://avatars.githubusercontent.com/u/6018812?v=3","gravatar_id":"","url":"https://api.github.com/users/zapletal-martin","html_url":"https://github.com/zapletal-martin","followers_url":"https://api.github.com/users/zapletal-martin/followers","following_url":"https://api.github.com/users/zapletal-martin/following{/other_user}","gists_url":"https://api.github.com/users/zapletal-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/zapletal-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapletal-martin/subscriptions","organizations_url":"https://api.github.com/users/zapletal-martin/orgs","repos_url":"https://api.github.com/users/zapletal-martin/repos","events_url":"https://api.github.com/users/zapletal-martin/events{/privacy}","received_events_url":"https://api.github.com/users/zapletal-martin/received_events","type":"User","site_admin":false},"body":"The time bucket abstraction as well as using offset makes usage by clients quite difficult. I understand though that there may not be a straightforward way to handle the offset given how Cassandra's repartitioning works. But could we avoid setting the first-time-bucket - maybe by querying the first ever event (inefficient, but there might be a better weay)? ","created_at":"2015-11-26T18:54:08Z","updated_at":"2015-11-26T18:54:08Z","html_url":"https://github.com/krasserm/akka-persistence-cassandra/pull/128#discussion_r46002283","pull_request_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128","_links":{"self":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/comments/46002283"},"html":{"href":"https://github.com/krasserm/akka-persistence-cassandra/pull/128#discussion_r46002283"},"pull_request":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128"}}},"pull_request":{"url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128","id":51626831,"html_url":"https://github.com/krasserm/akka-persistence-cassandra/pull/128","diff_url":"https://github.com/krasserm/akka-persistence-cassandra/pull/128.diff","patch_url":"https://github.com/krasserm/akka-persistence-cassandra/pull/128.patch","issue_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/issues/128","number":128,"state":"open","locked":false,"title":"add eventsByTag query for Cassandra 3","user":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"body":"* materialized view\r\n* partitioning on time bucket\r\n* EventsByTagPublisher\r\n* non-blocking EventsByTagFetcher\r\n\r\nFIXMEs for remaining work. I will also review #124 and consolidate.","created_at":"2015-11-24T07:51:38Z","updated_at":"2015-11-26T18:54:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75047f7271f472ee79a63e55382837495cc97bef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128/commits","review_comments_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128/comments","review_comment_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/issues/128/comments","statuses_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/statuses/94ed80613c08602c773d2575896c74258b520ebd","head":{"label":"patriknw:wip-events-by-tag-query-patriknw","ref":"wip-events-by-tag-query-patriknw","sha":"94ed80613c08602c773d2575896c74258b520ebd","user":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"repo":{"id":46476404,"name":"akka-persistence-cassandra","full_name":"patriknw/akka-persistence-cassandra","owner":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patriknw/akka-persistence-cassandra","description":"A replicated Akka Persistence journal backed by Apache Cassandra","fork":true,"url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra","forks_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/forks","keys_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/teams","hooks_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/hooks","issue_events_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/issues/events{/number}","events_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/events","assignees_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/assignees{/user}","branches_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/branches{/branch}","tags_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/tags","blobs_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/git/refs{/sha}","trees_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/statuses/{sha}","languages_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/languages","stargazers_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/stargazers","contributors_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/contributors","subscribers_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/subscribers","subscription_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/subscription","commits_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/commits{/sha}","git_commits_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/git/commits{/sha}","comments_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/comments{/number}","issue_comment_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/issues/comments{/number}","contents_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/contents/{+path}","compare_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/merges","archive_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/downloads","issues_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/issues{/number}","pulls_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/pulls{/number}","milestones_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/milestones{/number}","notifications_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/labels{/name}","releases_url":"https://api.github.com/repos/patriknw/akka-persistence-cassandra/releases{/id}","created_at":"2015-11-19T07:47:27Z","updated_at":"2015-11-19T07:47:28Z","pushed_at":"2015-11-26T11:12:12Z","git_url":"git://github.com/patriknw/akka-persistence-cassandra.git","ssh_url":"git@github.com:patriknw/akka-persistence-cassandra.git","clone_url":"https://github.com/patriknw/akka-persistence-cassandra.git","svn_url":"https://github.com/patriknw/akka-persistence-cassandra","homepage":"","size":352,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"krasserm:cassandra-3.x","ref":"cassandra-3.x","sha":"586444cb6672fa2aeb4c2003492558dbeddbdb9b","user":{"login":"krasserm","id":202907,"avatar_url":"https://avatars.githubusercontent.com/u/202907?v=3","gravatar_id":"","url":"https://api.github.com/users/krasserm","html_url":"https://github.com/krasserm","followers_url":"https://api.github.com/users/krasserm/followers","following_url":"https://api.github.com/users/krasserm/following{/other_user}","gists_url":"https://api.github.com/users/krasserm/gists{/gist_id}","starred_url":"https://api.github.com/users/krasserm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krasserm/subscriptions","organizations_url":"https://api.github.com/users/krasserm/orgs","repos_url":"https://api.github.com/users/krasserm/repos","events_url":"https://api.github.com/users/krasserm/events{/privacy}","received_events_url":"https://api.github.com/users/krasserm/received_events","type":"User","site_admin":false},"repo":{"id":15447419,"name":"akka-persistence-cassandra","full_name":"krasserm/akka-persistence-cassandra","owner":{"login":"krasserm","id":202907,"avatar_url":"https://avatars.githubusercontent.com/u/202907?v=3","gravatar_id":"","url":"https://api.github.com/users/krasserm","html_url":"https://github.com/krasserm","followers_url":"https://api.github.com/users/krasserm/followers","following_url":"https://api.github.com/users/krasserm/following{/other_user}","gists_url":"https://api.github.com/users/krasserm/gists{/gist_id}","starred_url":"https://api.github.com/users/krasserm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krasserm/subscriptions","organizations_url":"https://api.github.com/users/krasserm/orgs","repos_url":"https://api.github.com/users/krasserm/repos","events_url":"https://api.github.com/users/krasserm/events{/privacy}","received_events_url":"https://api.github.com/users/krasserm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krasserm/akka-persistence-cassandra","description":"A replicated Akka Persistence journal backed by Apache Cassandra","fork":false,"url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra","forks_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/forks","keys_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/teams","hooks_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/hooks","issue_events_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/issues/events{/number}","events_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/events","assignees_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/assignees{/user}","branches_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/branches{/branch}","tags_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/tags","blobs_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/git/refs{/sha}","trees_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/statuses/{sha}","languages_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/languages","stargazers_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/stargazers","contributors_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/contributors","subscribers_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/subscribers","subscription_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/subscription","commits_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/commits{/sha}","git_commits_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/git/commits{/sha}","comments_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/comments{/number}","issue_comment_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/issues/comments{/number}","contents_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/contents/{+path}","compare_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/merges","archive_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/downloads","issues_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/issues{/number}","pulls_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls{/number}","milestones_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/milestones{/number}","notifications_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/labels{/name}","releases_url":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/releases{/id}","created_at":"2013-12-26T06:47:08Z","updated_at":"2015-11-26T14:11:03Z","pushed_at":"2015-11-26T14:31:16Z","git_url":"git://github.com/krasserm/akka-persistence-cassandra.git","ssh_url":"git@github.com:krasserm/akka-persistence-cassandra.git","clone_url":"https://github.com/krasserm/akka-persistence-cassandra.git","svn_url":"https://github.com/krasserm/akka-persistence-cassandra","homepage":"","size":456,"stargazers_count":176,"watchers_count":176,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":24,"forks":63,"open_issues":24,"watchers":176,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128"},"html":{"href":"https://github.com/krasserm/akka-persistence-cassandra/pull/128"},"issue":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/issues/128"},"comments":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/krasserm/akka-persistence-cassandra/statuses/94ed80613c08602c773d2575896c74258b520ebd"}}}}