Questions tagged [relational-pouch]
8 questions
1
vote
1 answer
Difference between allDocs, find performance in relational-pouch
I'm developing an Ionic App. I use PouchDB with relational-pouch localy and Cloudant remote. I run into several performance issues. Currently there are only 200 docs in the db. The syncing works fine.
When I run this code after the initial sync has…

Tinsu
- 15
- 3
1
vote
1 answer
Can't filter or order by using relational-pouch plugin
Since last two days I have been trying to sort and/or filter documents in pouchdb using a plugin relational-pouch but its not working for some reason
I have read the docs from Pouch DB's official documentation and followed the steps, i.e, I created…

Budhana Tech
- 76
- 7
1
vote
1 answer
Do one to many relational pouch instances always have to be updated on both ends?
If I add a book to a relational pouch instance (That already contains an author with id 1 that has books 6 and 7) like this:
then(function() {
return db.rel.save('book', {
title: 'Winny the Pooh',
id: 8,
author: 1
})
And subsequently log…

Ole
- 41,793
- 59
- 191
- 359
0
votes
0 answers
why pouchdb.rel.find() works only with integer id?
I am trying to fetch related record with the help of pouchdb.rel.find('') it works fine when i give integer id it fetch the related data, but i don't give integer id while storing and give same id generated by couch db it is not working then
this …

web pakistan
- 444
- 1
- 4
- 16
0
votes
1 answer
Relational pouch methods aren't available in Angular Service
I'm trying to get relational-pouch working, I'm able to set the schema but when I call the save function I get the error TypeError: this.rel.save is not a function
This is the setup:
import PouchDB from 'pouchdb-browser'
import find from…

theSiberman
- 441
- 4
- 14
0
votes
1 answer
db.find returns empty array when using with relational-pouch
I changed my queries to relational-pouch but now when i use pouchdb-find it returns an empty array. My code looks like this:
this.$db.createIndex({ index: { fields: ['name', 'code'] } });
this.$db.find({
selector: {
_id: { $gte: null },
…

Wuzi
- 386
- 7
- 17
0
votes
0 answers
how to merge two pouch DB data as in one couch DB
This is my Pouch DB data for user "A"
{"people": [{"id": 1,"dept_id": 3,"user": "A",},{"id":2 ,"dept_id": 1,"user": "B",},{"id": 3,"dept_id": 1,"user": "C",}]}
This is my pouch DB data for user "B"
{"people": [{"id": 1,"dept_id": 1,"user":…

shiny
- 1
- 5
0
votes
1 answer
ember-pouch: does not load hasMany relationship when the belongsTo side is polymorphic
I have an ember-data app that uses the ember-pouch adapter for local & remote storage.
I am unable to load hasMany relationships when the belongsTo side is polymorphic. I've played with async: true/false and donstsave: true/false options on the…

pmlord
- 66
- 4