Is it normal situation that calling Execute
on 9000 custom object from database take circa 10 sec ?
var client = new RestClient("http://localhost:8732/carservice");
var request = new RestRequest(Method.GET);
request.Resource = "GetCarList";
var response = client.Execute<List<Car>>(request);
and method working on ms sql:
public List<Car> GetCarList()
{
using (var context = new CarEntities(DbAccess.connectionString))
{
return context.Car.Include("Owner").Include("Place").Include("Model").ToList<Car>();
}
}
and service:
[OperationContract]
[WebGet(ResponseFormat=WebMessageFormat.Xml)]
List<Car> GetCarList();