MVC Tutorial, few simple questions
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)
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
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.
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
--