0

Azureservice는 데이터를 50으로 축소 할 때 데이터에서 가져옵니다. 이전에 1,000 개를 다운로드 할 수있었습니다. 어떻게 해결할 수 있습니까?Azure AppService query.fetchLimit 작동하지 않습니다.

코드 : 파일을 수정하여

fileprivate func loadDataRecursiveForQuery(_ query: MSQuery, success: @escaping() -> Void, unsuccess: @escaping() -> Void){ 
    query.fetchLimit = 1000 // it doesn't work! 
    query.includeTotalCount = true 
    query.fetchOffset = GlobalVariables.result.count 
    query.read { (result, error) in 
     if let err = error { 
      print("ERROR ", err.localizedDescription) 
      unsuccess() 
      return 
     } else if let items = result?.items { 
      GlobalVariables.result.addObjects(from: items) 

      if result!.totalCount > GlobalVariables.result.count{ 
       self.loadDataRecursiveForQuery(query, success: { 
        success() 
       }, unsuccess: { 
        unsuccess() 
       }) 
      } 
      else{ 
       success() 
      } 
     } 
    } 
} 

답변

0

앱 서비스 다운로드 제한 "app.js는"당신이 지정할 수 있습니다. 파일 경로 :

YourWebSite.scm.azurewebsites.net/dev/wwwroot/app.js

새로운 하늘빛 서비스 "AppServiceEditor는"이 과정을 쉽게 할 수 있습니다. enter image description here

은 "페이지 크기 : 1000"코드 enter image description here

azureMobileApps 에서 변수를 정의
관련 문제