python sdk, 我把实际请求的一些信息打印出来了:

{'limit': 1000, 'where': '{}', 'order': ['createdAt'], 'skip': 1149000}
/classes/mytablename

频繁的出现这个错误:

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.leancloud.cn', port=443): Read timed out. (read timeout=15)

你好,
出现这个情况时,请执行以下命令,并帖上命令结果:
ping -c 5 api.leancloud.cn
traceroute api.leancloud.cn

刚才又断了,这是结果:
ping -c 5 api.leancloud.cn
PING api.leancloud.cn (120.132.49.251): 56 data bytes
64 bytes from 120.132.49.251: icmp_seq=0 ttl=47 time=15.357 ms
64 bytes from 120.132.49.251: icmp_seq=1 ttl=47 time=14.180 ms
64 bytes from 120.132.49.251: icmp_seq=2 ttl=47 time=14.110 ms
64 bytes from 120.132.49.251: icmp_seq=3 ttl=47 time=13.375 ms
64 bytes from 120.132.49.251: icmp_seq=4 ttl=47 time=14.233 ms

--- api.leancloud.cn ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 13.375/14.251/15.357/0.635 ms

经开发同学确认:
是 'skip': 1149000 的原因,skip太大,导致请求没有返回。
开发同学的建议:

跟 msyql 的 limit 一样,数据量一大,翻页靠 skip 是不行的,需要你加入字段来明确约束,比如按照时间。

恩是的,谢谢!