mvc 5 kendo 中索引加载的性能问题
Performance issue with the index load in mvc5 kedno
我有带有以下代码的控制器。
和
public ActionResult Index()
{
ViewData["ContractNumber"] = Mapper.Map<IList<Contract>, IList<ContractModel.contract>>(contractService.GetAll()).AsQueryable();
ViewData["ContractorName"] = Mapper.Map<IList<fContractor>, IList<ContractorModel.contractor>>(contractorService.GetAll()).AsQueryable();
ViewData["ServiceNameString"] = Mapper.Map<IList<fServiceDetail>, IList<ModelServiceDetail>>(serviceDetailsService.GetAll()).AsQueryable();
return View(ViewData);
}
映射器中的每个 table 都有大约 500 到 1500 条记录。
执行时,需要很长时间才能return到索引
有人可以推荐修复性能onlaod的代码吗?
问题已解决。
问题与映射器和解析器扩展有关。
我有带有以下代码的控制器。 和
public ActionResult Index()
{
ViewData["ContractNumber"] = Mapper.Map<IList<Contract>, IList<ContractModel.contract>>(contractService.GetAll()).AsQueryable();
ViewData["ContractorName"] = Mapper.Map<IList<fContractor>, IList<ContractorModel.contractor>>(contractorService.GetAll()).AsQueryable();
ViewData["ServiceNameString"] = Mapper.Map<IList<fServiceDetail>, IList<ModelServiceDetail>>(serviceDetailsService.GetAll()).AsQueryable();
return View(ViewData);
}
映射器中的每个 table 都有大约 500 到 1500 条记录。
执行时,需要很长时间才能return到索引
有人可以推荐修复性能onlaod的代码吗?
问题已解决。
问题与映射器和解析器扩展有关。