Search code examples
performancekendo-uiasp.net-mvc-5database-performance

Performance issue with the index load in mvc5 kedno


i have the controller with the followinf code. and

         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);
        }

each table in the mapper has aroung 500 to 1500 records.

when executed, it takes a long time to return to the index.

can some one suggest the code that fixes the performance onlaod.


Solution

  • issue is fixed.

    issue is about mappers and resolver extensions.