如何使用视图限制从ouchdb获取的记录数 [英] How to limit the numbers of records fetched from couchdb using view

查看:67
本文介绍了如何使用视图限制从ouchdb获取的记录数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个视图,它包含成千上万条我想一次只获取10或20条记录,为此,我尝试使用

I have created a view and it contains thousands of records I want get only 10 or 20 at a time ,for this I tried to use http://localhost:5984/recipes/_design/recipes/_view/by_recipe?limit=2 which is not working ,Still it is giving me entire data.

我该如何实现?

推荐答案

也许您需要结合使用 limit skip : https://wiki.apache.org/couchdb/HTTP_view_API

Maybe you need to use limit in combination with skip, according to these docs: https://wiki.apache.org/couchdb/HTTP_view_API

这篇关于如何使用视图限制从ouchdb获取的记录数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆