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

MVC Tutorial, few simple questions

3 replies [Last post]
  • Login or register to post comments
Mon, 09/05/2011 - 20:36
Nosralla
Offline
Joined: 09/02/2011
Groups: None

Hi!, Im starting with couchbase, and i have a few newbie questions after playing with the .Net CouchaBase + MVC tutorial. (http://docs.couchbase.org/couchbase-sdk-net-tutorial/index.html)

1) It says to add a reference to "'Hammock' project", but there is no link to the project, and i could not find it. And i searched a lot. Anyway it seems to work well without it. Im missing something here?

2) If i store a new document of type User, and call a View that returns all documents of type "User", the new user takes some time to show up in the results (usually shows up in the second call to the view after the store)

3) Considering this case:

I have 3 documents of type User already stored with ids 1,2 and 3.
I remove the document with id 3;
If i Call the view that returns all users right after the remove, sometimes the view returns:

[key:1, Value: (user document 1)]
[key:2, Value: (user document 2)]
[key:3, Value: null]

Looks to me that there is a delay between store/remove operations and the data that the View uses to generate its results, leading to these situations.
Is it expected to behave like this?

Thanks in advance.

(Im using Couchbase server 2.0 Developer Preview)

Top
  • Login or register to post comments
Tue, 09/06/2011 - 07:14
jan
Offline
Joined: 02/15/2011
Groups: None

Hi,

thanks for writing.

1) I'll try and find someone to find out what's up with this :)

2) Views results are asynchronous, so this is expected behaviour. At least for Couchbase 2.0.

3) See 2 :)

Cheers
Jan
--

Top
  • Login or register to post comments
Tue, 09/06/2011 - 08:18
ingenthr
Offline
Joined: 03/16/2010
Groups:

Hi,

Hammock[1] is a popular REST client for the .NET framework. You didn't have to deal with a lot of the details because we took advantage of ILMerge[2] and brought the dependency into the artifacts we ship to try to simplify your use of things.

As Jan mentioned, views results are asynchronous for now. We are, however, working on a feature that will let you be synchronous. We will have that soon, possibly even in time for 2.0 Beta! I can't make any promises yet though.

Thanks,

Matt

1. https://github.com/danielcrenna/hammock
2. http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx

Top
  • Login or register to post comments
Tue, 09/06/2011 - 08:32
Nosralla
Offline
Joined: 09/02/2011
Groups: None

Thanks for the helpful replies!
The product looks great and I'm looking forward to use it in my project.

If you guys have the time i think it would help to remove the "Add reference to Hammock project" from the tutorial since its not necessary, it causes some frustration trying to find it out.

And add a link to the page where we can download the .net client, I could only find it because someone pointed it here at the forum.

Again, thanks for the help and congrats for the product.

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