私はmongodbサーバーからアイテムを取得しようとしていますが、時々その作業があり、4〜5回試みた後、最後の行で反応が停止します(クエリの外にオブジェクトを取り出すことはできません)。オブジェクトを取り出す正しい方法は何ですか?
var client = new MongoClient(connectionString);
var server = client.GetServer();
var database = server.GetDatabase("myPlaces");
var collection = database.GetCollection<MongoPlace>("Places");
int startDay = int.Parse(Request.QueryString["day"]);
MongoPlace mp = collection.AsQueryable<MongoPlace>().Where(x => x.guid ==
Request.QueryString["id"]).FirstOrDefault();