GithubHelp home page GithubHelp logo

Comments (9)

muziejus avatar muziejus commented on July 3, 2024 3

For a bit of clarification on @rhysdavies1994’s workaround: you can enlarge the find default in Fauxton by:

  1. clicking on the gear on the left menu (Config), which takes you to http://127.0.0.1:5984/_utils/#_config/

  2. choosing “Add Option” at the top

  3. Filling in mango for “section,” default_limit for “name” and something large (50000) for “value.” On reload, it should look something like:

Screenshot 2019-04-24 at 13 40 53

from relational-pouch.

parzibyte avatar parzibyte commented on July 3, 2024 2

@muziejus solution working like a charm. Here's another pic:
imagen
(just put a bigger number in limit)

from relational-pouch.

rhysdavies1994 avatar rhysdavies1994 commented on July 3, 2024 1

I've had this exact same issue using ember-pouch with CouchDB and went through hours of exploration of messing with adapters and scouring through documentation to eventually come to a simple workaround.

As mentioned above, CouchDB 2.1.0 added the default limit. With ember-pouch v5.0.0 you can now set limit on query, but this didn't affect findHasMany for me.

By searching through the apache/couchdb source code I found there is an undocumented mango section in the CouchDB configuration: https://github.com/apache/couchdb/blob/master/rel/overlay/etc/default.ini#L280-L285

Therefore if you don't want a limit, you can just set a high limit under mango.default_limit through Fauxton or by modifying your config file.

from relational-pouch.

broerse avatar broerse commented on July 3, 2024 1

@rhysdavies1994 I did't know that. Not sure this is what we shout advise but until we fix this for findHasMany it is a good workaround.

from relational-pouch.

broerse avatar broerse commented on July 3, 2024

I am not aware there is a limit. Will investigate. On https://bloggr.exmer.com/ it will return more than 25 Posts. See https://bloggr.exmer.com/authors/D8F61FBC-A9C4-0318-851B-228507CDC032 after this record is loaded. https://github.com/broerse/ember-cli-blog/blob/master/app/models/author.js

from relational-pouch.

afinne avatar afinne commented on July 3, 2024

Hmm... I wonder if this is only when running against CouchDB: http://docs.couchdb.org/en/2.1.0/api/database/find.html?highlight=limit#db-find

Perhaps PouchDB does not have a default limit?

My scenario is that I use Ember-Pouch running against a PouchDB syncing to CouchDB on the iPad, and in the browser running straight against the same CouchDB.

from relational-pouch.

broerse avatar broerse commented on July 3, 2024

We run everything against Cloudant or CouchDB 1.6 and it does not have this limit. I see this limit in your CouchDB 2.1.0 doc but it does not state how to disable it. See also https://stackoverflow.com/questions/45632794/how-to-fetch-unlimited-documents-using-mango-query-couchdb-without-providing-li

from relational-pouch.

broerse avatar broerse commented on July 3, 2024

@nolanlawson Is this fixed/addressed in the newest pouch-find.

from relational-pouch.

broerse avatar broerse commented on July 3, 2024

@afinne Cloudant has this limit but we never saw it because if you use find on the local pouch it does not have this limit. So it is only the backend that has this limit. We stil need to fix this somewhere. I think this module is perhaps the correct place to fix this and not in pouchdb-find.

from relational-pouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.