Split LeafOutputFile content into different table for performance
This commit is contained in:
@@ -28,7 +28,7 @@ namespace LeafWeb.Web.Controllers
|
||||
|
||||
try
|
||||
{
|
||||
var curveIds = GetCurveIds(leafOutputFile.Contents);
|
||||
var curveIds = GetCurveIds(leafOutputFile.FileContents.Contents);
|
||||
|
||||
var viewModel = new ChartViewModel
|
||||
{
|
||||
@@ -54,7 +54,7 @@ namespace LeafWeb.Web.Controllers
|
||||
if (leafOutputFile == null)
|
||||
throw new ArgumentOutOfRangeException(); // TODO: break
|
||||
|
||||
var curveData = GetCurveData(leafOutputFile.Contents, curveId);
|
||||
var curveData = GetCurveData(leafOutputFile.FileContents.Contents, curveId);
|
||||
|
||||
if (curveData == null)
|
||||
return File("/Content/favicon/apple-icon-57x57.png", "image/png"); // TODO: different image ?
|
||||
|
||||
Reference in New Issue
Block a user