代码如下, 在QWE表单中 只有12条数据,但是请求反馈时间需要接近2分钟左右。 请问一下这个需要怎么解决?
function doSqlQuery() {
var getFeatureParam, getFeatureBySQLService, getFeatureBySQLParams;
getFeatureParam = new SuperMap.REST.FilterParameter({
//attributeFilter: "SmID>1"
});
getFeatureBySQLParams = new SuperMap.REST.GetFeaturesBySQLParameters({
queryParameter: getFeatureParam,
toIndex: -1,
datasetNames: ["2:" + "QWE"]
});
var url = 'http://localhost:8090/iserver/services/data-dl/rest/data';
getFeatureBySQLService = new SuperMap.REST.GetFeaturesBySQLService(url, {
eventListeners: {
"processCompleted": function (queryEventArgs) {
var selectedFeatures = queryEventArgs.result.features;
for (var i = 0; i < selectedFeatures.length; i++) {
var MODELNAME = selectedFeatures[i].data["MODELNAME"];
var SMID = selectedFeatures[i].data["SMID"]
$("#modelName").append("<option value=" + SMID + ">" + MODELNAME + "</option>");
}
$('#modelName').on('change', function () {
var value = this.value;
viewer.scene.layers.find("dl").setObjsVisible([value], true)
})
},
"processFailed": function (queryEventArgs) {
alert('查询失败!');
}
}
});
getFeatureBySQLService.processAsync(getFeatureBySQLParams);
}