Hyperledger Composer query with LIMIT and SKIP return all results

☆樱花仙子☆ 提交于 2019-12-24 18:58:40

问题


Actually I want to list transactions with a limit, but the query return all the result on REST SERVER API , bellow my query

query list {
  description: "List  with limit and offset"
  statement:
      SELECT org.acme.biznet.things
          LIMIT _$limitParam
            SKIP _$skipParam
}

回答1:


Unfortunately, LIMIT/SKIP support is blocked by Fabric presently as described in Issue 1015 on GitHub.

https://github.com/hyperledger/composer/issues/1015




回答2:


As of Hyperledger Fabric v1.3, pagination of query results is supported. A more efficient approach than skip/limit is utilized. Please see the pagination documentation.



来源:https://stackoverflow.com/questions/49544653/hyperledger-composer-query-with-limit-and-skip-return-all-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!