Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Product Feature Requests

More dev-friendly operations in Web Admin

3 replies [Last post]
  • Login or register to post comments
Sun, 12/09/2012 - 11:37
adavidson
Offline
Joined: 09/11/2012
Groups: None

I'd love to see a few things added to the web admin that would make early development easier. They might be the sorts of things you'd disable or not recommend for production, but having them available would help greatly speed up development and debugging. There are some things I need to do regularly that are tedious:

Delete all documents in a bucket (instead of having to delete the bucket and re-create it, and re-install all my views). If I'm working on a new feature, it is easy for a bug or design change to require me to wipe my previous data and start over. I find myself needing this a lot. Even cooler would be a 'Delete all documents with keys that match a regex'. Queries on documents based on regex would also be awesome. The key range start/end is too limited for quick adhoc lookups.

Top
  • Login or register to post comments
Wed, 12/19/2012 - 20:35
scalabl3
Offline
Joined: 07/18/2012
Groups:

Great ideas!

Actually we already have the delete all Documents in a bucket feature, but we disable it by default so it's not done accidentally. In 2.0, if you click on Data Buckets tab, click on the triangle next to the bucket name to expand. On the right, click on Edit and near the bottom of the popup modal there is a checkbox for Flush, check the box and click Save. Now click Edit again and in the Modal on the bottom left there is now a Flush button, click it to Delete all data in the Bucket. This is what you want.

Also you can Flush from the SDK as well, but it needs to be enabled with the checkbox first. The reasoning is that it's very easy to execute a flush command so we protect it so that people don't accidentally delete all their data.

The RegEx idea is cool. I actually do this through a MapReduce View. In my map function I index the documents based on the key/regex, or a .startsWith type deal on the meta.id or whatever. Then in my app Test code, or wherever, I pull the View with stale=false and iteratively delete them all. Not hard to do.

We are working on a query language for ad hoc querying, so this would be easy to do in the future in creative ways :)

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

Top
  • Login or register to post comments
Tue, 01/01/2013 - 11:46
adavidson
Offline
Joined: 09/11/2012
Groups: None

Oh sweet -- I didn't realize what 'flush' meant. That is super useful.

Top
  • Login or register to post comments
Tue, 02/05/2013 - 02:59
dipti
Offline
Joined: 11/02/2011
Groups:

http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-resta...

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