I need to load @50,000 items from different unix directories into couchbase. My first attempt was to get an item process it and then write the processed data to couchbase (using a method that receives the data, open a couchbase connect and upsert the data) while this DOES WORK AFTER @ 5000 items the insert slow down and eventually stop/hang.
I then tried a different approach of opening the connection once and then looping through the directory and again building my record and upserting it but now I am getting an error:
Exception = {“A request has been made for a service that is not configured or supported by the cluster. Please check the cluster and enable or add a new node with the requested service: Data.”}
what wierd is that if I use the old program it upserts just fine and the code is identical except in one case the connection is opened per record and in th eother I open once and then try to do the upsert. They use the SAME BUCKET on the same cluseter and system.
below is the c# code
var cluster = new Cluster(new ClientConfiguration
{
Servers = new List { new Uri(“http://system”) }
});
var authenticator = new PasswordAuthenticator("user", "passwd");
cluster.Authenticate(authenticator);
var bucket = cluster.OpenBucket("uvCodeInfo");
var document = new Document<dynamic>
{
Id = id,
Content = new
{
read = readList,
readu = readuList,
call = callList,
execute = executeList,
clearselect = clearselectList,
mod = modList,
write = writeList,
writeu = writeuList,
path = path,
lasteWrite = stamp
}
};
var upsert = bucket.Upsert(document);
cluster.Dispose();
any advice or suggestions are welcomed
thanks in advance