MVC3 data caching techniques

前端 未结 3 1863
误落风尘
误落风尘 2021-02-06 11:02

I have a sql query (stored proc) that takes about 8-10seconds to return before the results are displayed in a webgrid. What is best practice for performance regarding cacheing

3条回答
  •  礼貌的吻别
    2021-02-06 11:41

    It's caching this action.

    [OutputCache(Duration = 300)]
    public ActionResult Action(){
    
    //some operation
    
    return View()
    }
    

提交回复
热议问题