视图渲染时间过长
View takes too long to render
我必须用大量数据填充部分视图。我首先在服务器上进行 ajax 调用:
$.ajax({
url: '/Monitoring/_Thresholds?workspaceID=' + workspaceID,
type: "POST",
data: new FormData(form),
cache: false,
contentType: false,
processData: false,
}).success(function (result) {
resultsDiv.innerHTML = result;
}).error(function (response) {
resultsDiv.innerHTML = response.responseText;
});
但是由于数据量太大,执行此操作花费的时间太长,我得到:
HTTP Error 502.3 - Bad Gateway
The specified CGI application encountered an error and the server
terminated the process.
Most likely causes:
The CGI application did not return a valid set of HTTP errors.
A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway.
Things you can try:
Use DebugDiag to troubleshoot the CGI application.
Determine if a proxy or gateway is responsible for this error.
BL 的东西需要 2-3 秒,但渲染视图要多得多。
有什么办法可以解决吗?
rc1-final渲染大视图中有known performance issue
为 rc2 准备好修复。我想尽量把视图变小。
我必须用大量数据填充部分视图。我首先在服务器上进行 ajax 调用:
$.ajax({
url: '/Monitoring/_Thresholds?workspaceID=' + workspaceID,
type: "POST",
data: new FormData(form),
cache: false,
contentType: false,
processData: false,
}).success(function (result) {
resultsDiv.innerHTML = result;
}).error(function (response) {
resultsDiv.innerHTML = response.responseText;
});
但是由于数据量太大,执行此操作花费的时间太长,我得到:
HTTP Error 502.3 - Bad Gateway
The specified CGI application encountered an error and the server terminated the process.
Most likely causes:
The CGI application did not return a valid set of HTTP errors. A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway.
Things you can try:
Use DebugDiag to troubleshoot the CGI application. Determine if a proxy or gateway is responsible for this error.
BL 的东西需要 2-3 秒,但渲染视图要多得多。
有什么办法可以解决吗?
rc1-final渲染大视图中有known performance issue
为 rc2 准备好修复。我想尽量把视图变小。