Skip to content

Add native 2I queries to PBC protocol#327

Merged
rzezeski merged 3 commits into
masterfrom
sdc-pb-2i
Jun 6, 2012
Merged

Add native 2I queries to PBC protocol#327
rzezeski merged 3 commits into
masterfrom
sdc-pb-2i

Conversation

@seancribbs

Copy link
Copy Markdown
Contributor

This is part of a series of pull-requests that adds native 2I queries to the Protocol Buffers interface. In my unscientific tests, the native query shows a 50-80% improvement over the emulation via MapReduce. (See https://gist.github.com/f5d4599cff9e2f9f9c91)

Related: basho/riak_pb#1

NOTE: This requires the PBC refactoring (#321) to be present first.

Comment thread src/riak_index.erl Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is not something you did directly, but the function name in the spec doesn't match the actual function name.

@kellymclaughlin

Copy link
Copy Markdown
Contributor

Diff between this branch and sdc-pbc-extract: sdc-pbc-extract...sdc-pb-2i

Comment thread src/riak_kv_pb_index.erl Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/riak_kv_pb_object/riak_kv_pb_index

@seancribbs

Copy link
Copy Markdown
Contributor Author

@kellymclaughlin Fixed typos and also followed @rzezeski's suggestion about using #state{} instead of the crazy macro.

@kellymclaughlin

Copy link
Copy Markdown
Contributor

HTTP and mapreduce 2I queries still work for me. The changes from sdc-pbc-extract look good. Just wondering if there is a straightforward way to exercise riak_kv_pb_socket that I have overlooked.

@kellymclaughlin

Copy link
Copy Markdown
Contributor

+1 to merge

@ghost ghost assigned seancribbs May 31, 2012
@rzezeski
rzezeski merged commit 5a2348b into master Jun 6, 2012
@ghost ghost assigned rzezeski Jun 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants