Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Is it possible to call an external function from a view's map or reduce function?

4 replies [Last post]
  • Login or register to post comments
Mon, 02/11/2013 - 12:18
stevevls
Offline
Joined: 02/11/2013
Groups: None

I'm currently evaluating Couchbase's map/reduce views for managing aggregate reports over large volumes of data. When creating the map/reduce view, my reduce function will need to call an aggregate function that is proprietary technology, and that function is only implemented in C and Java. Is there a mechanism for making external functions like that available to the map/reduce processor?

Thanks!

Top
  • Login or register to post comments
Tue, 02/12/2013 - 07:37
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

It is not possible in the 2.0 release, and this is the first time I hear about this requirement.

Can you give us more information about the type of function/treatment you would like to do?

Regards

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Thu, 02/14/2013 - 15:31
ari
Offline
Joined: 05/16/2012
Groups: None

I'll second the request. This would allow you to do all kinds of things with the map/reduce functionality. For example, you'd be able to parse non-json data, such as msgpack or protobuf. Couchbase wouldn't need to implement these, you'd just call out to the right library.

Top
  • Login or register to post comments
Thu, 02/14/2013 - 21:35
solo95
Offline
Joined: 01/14/2013
Groups: None

I'd like to have the possibly to write c map / reduce code directly - is this possible with current couch 2.0? (In order to provide for some extremely optimized (fast) map / reduce functions).

Cheers,
Mario

Top
  • Login or register to post comments
Fri, 02/15/2013 - 16:12
stevevls
Offline
Joined: 02/11/2013
Groups: None

My use case is that I have a proprietary aggregate function that I would like to use as a reduce function. It's treated as a trade secret, so the only way I'd be able to get it into the Couchbase runtime would be if there were some way to hook in an external function.

For this particular project, Couchbase seems like it would be a good fit. I want to run a daily Map/Reduce job to create a query-able dataset, and Couchbase would be able to take care of both those requirements...if only I could use my function. Would definitely love to see that sort of functionality in a future release.

Thanks!

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