Garren Smith
Member since Apr 24, 2017
- Profile: /members/13501-garren-smith.htm
- URL: http://www.redcometlabs.com
- Comments: 6
Recent Blog Comments By Garren Smith
-
Understanding The Query Plan "Explained" By the Find Plugin In PouchDB 6.2.0
Posted on May 15, 2017 at 10:51 AM
@Ben, That would be fantastic. Let me know how I can help you with it... read more »
-
Understanding The Query Plan "Explained" By the Find Plugin In PouchDB 6.2.0
Posted on May 15, 2017 at 9:41 AM
Hey Ben, This is a fantastic article. I'm busy working on `use_index` which would allow you to set which index you want to use for a query. As well as the `.explain` endpoint. This would then return a json object explaining how the query would be run. The work is here https://github.com/pouchdb/po... read more »
-
Monkey-Patching The Mango .find() Plugin To Use .allDocs() In PouchDB 6.2.0
Posted on Apr 26, 2017 at 5:19 AM
@Ben, It is undocumented because its a semver free zone :) Its possible to use the pouchdb-find selectors in the changes feed and in replication and it uses a similar pattern internally. This pattern is used by default if no other index is available. Otherwise instead of allDocs it will first use ... read more »
-
Monkey-Patching The Mango .find() Plugin To Use .allDocs() In PouchDB 6.2.0
Posted on Apr 25, 2017 at 8:30 AM
Hi Ben, I thought you might find this interesting. Here is an example of using the allDocs with the keys option and then doing further filtering via the pouchdb-find in-memory selectors. https://gist.github.com/garrensmith/52bd16c086c46dfe2461c6cdedf8943e... read more »
-
Experimenting With The Mango .find() API In PouchDB 6.2.0
Posted on Apr 24, 2017 at 12:17 PM
I read that post. It was really cool, I have another idea for you for that post. It is possible to use allDocs() and then just use the find matchers which would make it a lot more generic and you wouldn't need to monkey patch it. I will try and do an example for you in a day or two. I'm not 100% w... read more »
-
Experimenting With The Mango .find() API In PouchDB 6.2.0
Posted on Apr 24, 2017 at 10:42 AM
Hi Ben, This is a really great article. I agree with you, I think the warning when using $in with the _id index is a bug. I've created a ticket here https://github.com/pouchdb/pouchdb/issues/6447 to investigate this further.... read more »