0
컨트롤러에 followinf 코드가 있습니다. 및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);
}
매퍼의 각 테이블은 aroung 500 1500 기록을 가지고있다.
실행하면 인덱스로 돌아 오는 데 시간이 오래 걸립니다.
성능 문제를 해결하는 코드를 제안 할 수 있습니다.