Skip to content

Instantly share code, notes, and snippets.

@d11wtq
Created May 14, 2012 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d11wtq/2694399 to your computer and use it in GitHub Desktop.
Save d11wtq/2694399 to your computer and use it in GitHub Desktop.
Brainstorming an interface for distributed indexes with oedipus and oedipus-dm
# normally
idx = conn[:posts_rt]
idx.insert( ... )
idx.search( ... )
# distributed
idx = conn[:posts_dist, ->(id){ "posts_rt_#{id % 4}" }]
idx.insert( ... )
idx.search( ... )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment