Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Is it possible to search on both KEY and VALUE!!!

3 replies [Last post]
  • Login or register to post comments
Wed, 04/25/2012 - 03:14
Ravichandra
Offline
Joined: 04/25/2012
Groups: None

Hi,

I would like to write an application which can search 500 TPS (Transaction per Second) from 200 million records. The search will be done on both Key and Value.

A KEY will have 999 values with comma separator (001, 002, 010, 020, 100, 101, 102, 909, 999, etc..) and will have ‘n’ number of keys.

Sample number will have 6(123456) digits and the key value will be first 3(123) digits and value will be last 3(456) digits.

Is it possible to search on both KEY and VALUE? From my C++ application I will pass both KEY (123) and VALUE (456), it should return value is present or not in the KEY.

Kindly advise on the same.

Regards,
Ravichandra.

Top
  • Login or register to post comments
Fri, 05/18/2012 - 09:42
ingenthr
Offline
Joined: 03/16/2010
Groups:

It is possible to search on both key and value using Couchbase Server 2.0. Please have a look at views in Couchbase Server 2.0. They'll help you do what you want.

Top
  • Login or register to post comments
Fri, 06/08/2012 - 13:07
ari
Offline
Joined: 05/16/2012
Groups: None

As far as I know there is a limit of 250 characters for the key, so 999 values won't work for the key unfortunately. Source: Memcache protocol (https://github.com/memcached/memcached/blob/master/doc/protocol.txt) scroll down to section label "Keys"

Top
  • Login or register to post comments
Wed, 06/13/2012 - 09:41
ingenthr
Offline
Joined: 03/16/2010
Groups:

Ari is correct here. I read this as the key would be a sorted set though, and not necessarily violate the number of characters restriction. Maybe I read it incorrectly though.

Still, given that Couchbase Server 2.0 is required, you'll be able to put the data in the body of the document. We usually recommend having a natural key for the document, but it's not strictly required.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker