提供下面的信息有助于更快地解决问题:
1、问题详情:
查询中由AVRelation产生的AVQuery使用分页功能,commentsQuery.skip = 25,返回结果无效果,还是最初的前25个,并没有实现分页的效果。
直接使用[AVQuery queryWithClassName:className] 产生的分页查询功能就工作正常!!!

因为以前的数据结构都是使用AVRelation设计的,现在AVRelation虽然官方说抛弃了,但从效率还有稳定性上中间表根本代替不了这个功能,希望考虑一下我们现在的所有数据的实际情况,不可能重新去设计数据表。

希望尽快解决!!!!!!

2、SDK 版本号:
最新版本11.4.2
3、相关代码片段:
AVRelation *relation = [inputObject relationForKey:PFSHARE_COMMENTS_RELATION];
AVQuery *commentsQuery = [relation query];
[commentsQuery includeKey:PF_COMMENTS_USER_FROM];
[commentsQuery includeKey:PF_COMMENTS_REPLY_1];
[commentsQuery includeKey:PF_COMMENTS_REPLY_2];
commentsQuery.cachePolicy = kAVCachePolicyCacheThenNetwork;
[commentsQuery orderByDescending:PF_SHARE_CREATED_AT];
commentsQuery.skip = 25;
4、相关日志:
(打开日志的方法:[AVOSCloud setAllLogsEnabled:YES];)
2018-09-15 16:53:01.284596+0800 SoonTake[2320:44940] [💚DEBUG] -[AVPaasClient performRequest:success:failure:wait:] [Line 621]

------ BEGIN LeanCloud REST Request -------
path: /1.1/classes/Comments
curl: curl -i -k -X GET -G --compressed -H 'Accept: application/json' -H 'Content-Type: application/json; charset=utf-8' -H 'X-LC-Id: DdGAqAjetGfwaSAWlOc8bCL4-MdYXbMMI' -H 'X-LC-Prod: 1' -H 'User-Agent: AVOS Cloud iOS-v11.4.2 SDK' -H 'X-LC-Session: t09yy2ldp7rf5j840plj7cr2z' -H 'Accept-Encoding: gzip' -H 'Accept-Language: en;q=1' --data-urlencode 'include=reply2,userFrom,reply1' --data-urlencode 'limit=10' --data-urlencode 'order=-createdAt' --data-urlencode 'skip=10' --data-urlencode 'where={"$relatedTo":{"key":"comments","object":{"__type":"Pointer","className":"SecondHandProduct","objectId":"5b90de56c2ccb40038145ecf"}}}' "https://ddgaqaje.api.lncldglobal.com/1.1/classes/Comments"
------ END --------------------------------
2018-09-15 16:53:01.285053+0800 SoonTake[2320:44940] loadInBackground
2018-09-15 16:53:01.307019+0800 SoonTake[2320:44940] didEndDisplayingCell: row-25
2018-09-15 16:53:01.307219+0800 SoonTake[2320:44940] didEndDisplayingCell: row-25
2018-09-15 16:53:01.307456+0800 SoonTake[2320:44940] loadInBackground
2018-09-15 16:53:01.524735+0800 SoonTake[2320:45295] [💚DEBUG] -[AVPaasClient performRequest:success:failure:wait:]blockinvoke [Line 689]

------ BEGIN LeanCloud REST Response ------
path: /1.1/classes/Comments
cost: 237.359ms