Hi, My use case is to get full datasets. I have 1 layer that contains 281,666 total data. For performance wise, I can get 2000 total data only per request via API. To get full dataset of the layer, I need to spin the request and use while loop which is total data is greater than index. My below is my code.
let start = 0
let limit = 2000
while (totalData > start) {
let data = api.repository.getData(layer, start, limit)
start += limit
}
async function getData(layer, start, limit)
{
try {
let query = layer.createQuery()
query.where = '1=1'
query.start = start
query.num = limit
const { data } = await layer.queryFeatures(query)
console.log(data)
} catch (e) {
console.error(e)
}
}
Based on my code, I only can get 30,000 only data with 10 columns. Is there I missing the server configuration? How do I want to setting the rate limit or total maximum of request? Thanks!