Couchbase Questions: .NET SDK

Have a Question? Get it answered by our community

cjjohansen's picture
Asked 1 month 2 weeks ago

Getting Single document by Unique value

Hi

Whats the best approach for querying a single entity by a unique value which is not the Key?

var view = client.GetView("useraccount", "by_email").StartKey(theEmail).EndKey(theEmail).Limit(1
...
cjjohansen's picture
Asked 1 month 2 weeks ago
Latest activity 1 month 2 weeks ago

.NET SDK 1.3 Extensions is it possible to configure JSON Serializer

Hi

the MVC Tutorial suggests using the client.GetJson and client.StoreJson extension methods.

I Need to serialize POCO's with protected setters in order to maintain incapsulation.
I Have written a ContractResolver based on CamelCasePropertyNamesContractResolver. Which does...

yli119's picture
Asked 1 month 2 weeks ago
Latest activity 1 month 2 weeks ago

Client discounts under "Idle", never able to reconnect

We found a bug in the library when the client discounts under "idle" for more than half an hour, and it’s easy to reproduce:

  • Create a client for the couchbase client library (version 1.3.3.0), used to read document only, let’s called it ROC, read only client;
  • Insert a
  • ...
ANdrei Nechifor's picture
Asked 1 month 2 weeks ago
Latest activity 1 month 2 weeks ago

How can I guarantee that a view returns the last inserted value also

Steps:
1. Write a key/value using ExecuteStore command
2. I immediately try to get the last inserted value like this:
var view = _instance.GetView("all_docs", "all_docs");
view = view.Stale(StaleMode.False);
var documents = view.Select(GenerateCacheData);
...

ahmy's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 2 weeks ago

Error while storing large data in couchbase saying "Too large value" with status code = 3

I am facing a big problem now when trying store large data in couchbase using the following code :

var status = client.ExecuteStore(StoreMode.Add, "Tests", result);

I am using .net 4.0 (C#), and the status code returned with value 1 so how can i fix this issue and store large...

sherryummen's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 3 weeks ago

Is there a way to avoid the limit of 20Mb per document size?

In our case the documents can be huge; splitting is a time consuming process and it reduces the performance as well. I was wondering if we have some way to change this limit?

harold's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 2 weeks ago

VS 2013 & .net 3.5

I used Package Manager to add CouchbaseNetClient.1.3.7 to a .net framework 3.5 vb.net project.

I can Import Couchbase and use the namespace in code.

But once I compile/build my project I get the following error and Couchbase is no longer available in code.

Namespace or...

agnieszkac's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 3 weeks ago

Couchbase SDK 1.3.7 (.Net) expiryTime issue

In version 1.3.6 here was a bug introduced when using Store method:
http://www.couchbase.com/communities/q-and-a/store-memcached-bucket-expi...

I upgraded to version 1.3.7 and it looks like...

sherryummen's picture
Asked 2 months 7 hours ago
Latest activity 1 month 2 weeks ago

"Failed to process response: Temporary failure" on bulk insert using ExecuteStore

Hi,

I have been doing bulk insert operation about 13000 documents where some document can be in size more than 10Mb; but for some random documents the write fails with "Failed to process response: Temporary failure". in stack overflow someone said that its coz of lack of free RAM memory...

Sonrobby's picture
Asked 2 months 2 days ago
Latest activity 1 month 2 weeks ago

Error GetView in C# .NET beer-sample

Follow Example at https://github.com/couchbaselabs/docs-ng/blob/master/content/couchbase-s... :

I have a View: beer/by_country of beer-sample bucket:...

Pages