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

index performance

1 reply [Last post]
  • Login or register to post comments
Tue, 05/15/2012 - 23:39
SteveC
Offline
Joined: 04/24/2012
Groups: None

I can't tell what is going wrong, but indexing is taking days (> 48hrs, < 50% indexed) on some buckets with a small number of views and relatively small number of documents each (< 10million). The map function is essentially this:

if (/^type:.*/.test(doc.id_field)) emit (doc.id, doc)

There is a recommendation not to emit the doc, but I've encountered multiple issues trying to retrieve the document from the view so gave up one emitting null for the value. I had originally thought indexing was stalled, but now I think it is just very slow for some reason.

Just did an iostat check -- reads and writes are at about 1400 blocks/sec and 53% utilization. Is this high? How does Couchbase index documents?

Top
  • Login or register to post comments
Wed, 05/23/2012 - 06:31
FilipeManana
Offline
Joined: 04/02/2012
Groups: None

Hello,

We are aware of non-optimal performance for index builds/updates and queries for many scenarios. For 2.0 DP4 we had a brand new view engine implementation, therefore most of the efforts went into making it work, be stable and as bug free as possible.

We have already many big performance improvements (from 2x up to 10x for some cases) for the next developer preview (DP5) and we're working on more big performance enhancements, always with stability and correctness in mind.

As a side note, the view you're creating likely matches a worst case scenario - if your documents id field is an UUID. However what you're reporting, > 48 hours for less than 50%, is definitely excessive. What kind of hardware is it and how many nodes?

best regards,
Filipe Manana

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