question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get performance degrades 10x

See original GitHub issue

I’m new to PouchDB / CouchDB. Very excited to find your package on account of the performance gains. Alas, I’m seeing performance problems. I guess it’s something on my side, but I’m not sure how to investigate / debug. Any input would be greatly appreciated.

I have 3 PouchDB databases which are doing one way replication from a cloudant instance. The databases are ~8k records 22MB, ~150 records 210k, ~3.5k records 5MB. The data is synced very quickly into my local PouchDB databases.

I can .allDocs() on the ~150 record database in ~200ms. Performance is great.

I’m trying to fetch ~350 documents from the database with 8k records. If I use .allDocs({keys: [...]}) it takes >40s to load the data. If I iterate with a Promise.each([...]) (from bluebird) to fetch each record serially via .get(id), each fetch can take up to 3s or more.

If I disable { adapter: "react-native-sqlite" } line, then performance is significantly better in the iOS simulator. The ~350 documents load in ~4s (via the serial fetch method).

Any advice on how I can debug this issue?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chmaccommented, Nov 30, 2017

PS: Thanks for the advice so far, that startkey / endkey optimisation has gotten us from unacceptable performance into the realm of acceptable, really appreciate it.

0reactions
craftzdogcommented, Oct 24, 2018

I guess it’s ok to close. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Does It Take To Hit A 10X Performance Improvement?
A common strategy to boost machine and application performance is to throw a bunch of SSDs into the equation to boost data throughput....
Read more >
Make Entity Framework 10x Faster in 20 minutes - Exoft
Another reason for the performance degradation is a change in business rules. ... Before we get to the entity framework performance improvements and...
Read more >
Node echo server degrades 10x when stream pipes are used ...
Turns out, this has as abysmal performance as pipe.js. I find this interesting because the same number of res.write and res.end calls are...
Read more >
Can the Enhancer be kept at 42°C or 65°C for longer periods ...
We do not expect leaving the enhancer at 65°C or 42°C longer than 10 minutes will result in a degradation in FRP performance....
Read more >
Debugging of Performance Degradation in Distributed ...
Unlike debugging, where the program is executed step by step to get its current state, tracing collects data during the execution, and the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found