petenelson
petenelson

Reputation: 460

How to diagnose and prevent an http timeout on get with key in RavenDB

Got a problem with a timeout when getting an item by its key in RavenDB client

System.Net.WebException: The operation has timed out
Raven.Client.Connection.ServerClient.DirectGet(String serverUrl, String key)

I believe this is due to indexing that is going on in the background - but if that is the case then it should not affect a get by key, should it?

Prior to performing this get I have done a number of inserts that have 6 fields being indexed by Lucene.Net.Analysis.Standard.StandardAnalyzer. The fields are only around 300 characters long at most.

We are using one session over each httprequest cycle which I believe is correct. However we are calling SaveChanges a number of times in the httprequest and are considering calling savechanges only at the end of the httprequest cycle to follow the UnitOfWork pattern.

What would be the best way to diagnose this issue?

Upvotes: 1

Views: 296

Answers (1)

Ayende Rahien
Ayende Rahien

Reputation: 22956

There is NO association between indexing and request handling threads. One can't impact the other. Is this hosted on a different machine? Are you doing some debugging that might impact something? Are you on an EC2 instance?

Upvotes: 2

Related Questions