GQLQuery에서 커서를 사용하는 것이 제대로 작동하지 않는 이유를 아는 사람이 있습니까?GQLQuery with_cursor가 작동하지 않습니다.
다음을 실행 중입니다.
query = "SELECT * FROM myTable WHERE accountId = 'agdwMnBtZXNochALEglTTkFjY291bnQYpQEM' and lastUpdated > DATETIME('0001-01-01 00:00:00') ORDER BY lastUpdated ASC LIMIT 100"
if lastCursor:
dataLookup = GqlQuery(query).with_cursor(lastCursor)
else
dataLookup = GqlQuery(query)
//dataLookup.count() here returns some value like 350
for dataItem in dataLookup:
... do processing ...
myCursor = dataLookup.cursor()
dataLookup2 = GqlQuery(query).with_cursor(myCursor)
//dataLookup2.count() now returns 0, even though previously it indicates many more batches can be returned
도움 주셔서 감사합니다.
왜 dataLookup.count()는 100 쿼리 제한 자체의 경우 350을 반환? –
카운트는 여전히 전체 쿼리 크기를 반환 할 수 있습니다. 가져올 때 가져온 결과 배열은 100입니다. 감사합니다! – savagepanda