PouchDB very slow on first use

performance
android

#1

While PouchDB performance is not generally bad in Brave on Android the first-time use cost is extreme there for my progressive web app.

Following sample code executes in

  • 200 ms in firefox nightly under linux (59.0a1 (2017-11-25))
  • 680 ms in firefox nightly on android (59.0a1 (2017-11-25))
  • 1500 ms in brave on linux (0.19.95)
  • 16000 ms in brave on android (1.0.37)

Here is the sample code for a db containing only 16 small documents:

console.time('db.info');
var db = new PouchDB('options');
db.info(function (err, info) {
  console.timeEnd('db.info');
  if (err) {
    console.log(err);
    // handle err
  }
  console.log(info);
});

Upgrading from pouchdb 4.0.3 to 6.3.4 did not help either.

Could anyone with experience in this area share their view on this?

Thanks!

Adrian


#2

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.