New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance PouchDB, with sqldown: very slow #12
Comments
Yeah that seems slow,if been doing some work on it check the upgrade knex On Mon, Dec 15, 2014, 5:17 AM Javier Castro notifications@github.com
|
unable to confirm, using a slightly modified version of the code var PouchDB = require('pouchdb');
var db = new PouchDB('testdb', {
db: require('./')
});
var arr = [];
for (var i = 0; i < 200; i++) {
arr.push({
_id: i.toString(),
value: i
});
}
console.time('bulk');
db.bulkDocs(arr)
.then(function() {
console.timeEnd('bulk');
}); I get
|
I'm running that code with this package.json: {
"dependencies": {
"pouchdb": "pouchdb/pouchdb",
"sqldown": "calvinmetcalf/sqldown#upgrade-knex",
"sqlite3": "^3.0.4"
}
} I get this (on linux): bulk: 44690ms |
The data is there after execute those super-fast 986ms ? |
yes it is, let me try this from a linux box and see what happens (on a mac right now) |
Yeah, i've used a Win7 (virtual) box, and a Fedora 21 (hosted) box so far. |
ok tried it on an aws box and got bulk: 13471ms but it is a box with quite a bit running on it so I'll try it at home on my ubuntu laptop when I have a chance, this is likely an issue with the sqlite3 module |
I wanted to get a sense for the perf difference between SQLDown and LevelDown. So I tried to run the PouchDb perf tests. I couldn't get all-docs-skip-limit to even run and I had to remove the destroy in the test cleanup thanks to #11. But here are some results:
The view tests failed with EBUSY when trying to get to test0_x-mrview-temp. |
This test takes much time (1 min.) vs using for example medeadown, which takes 1 sec.
Moved from pouchdb/pouchdb/issues/3167
The text was updated successfully, but these errors were encountered: