-
Notifications
You must be signed in to change notification settings - Fork 96
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
WORK IN PROGRESS -- PLEASE IGNORE ME -- Asyncify mysql_db.js and CacheAndBufferLayer.js, and other cleanups #158
Conversation
Awesome stuff will look at this tomorrow. |
94c1b30
to
fb6fc2f
Compare
Did a small test run:
when running with mysql
Maybe it's a problem with my setup, but on backend tests:
I noticed it's very slow on mysql - I usually don't run my tests with mysql (probably I should prepare a better test setup here...), so I don't know if this PR or something else introduced the slowness. With dirtydb backend the following tests fail:
Maybe the changes exposed some problems (error handling?) that we need to fix in etherpad-core? |
fb6fc2f
to
d8e8819
Compare
Thanks for testing! I pushed a fix and tested it against Etherpad with MySQL and dirty to confirm that it works.
My unscientific tests showed MySQL to be a bit faster than dirty (46s vs. 54s for backend tests on my slow machine). This PR probably does add some overhead, but it shouldn't be significant. |
I have to conclude that this work has introduced some additional slowness. I only tested MySQL, other databases should probably also be checked.. Before (
|
9b31abc
to
f3d195d
Compare
Multiple commits:
this
instead ofself
,_this
, orthat
CacheAndBufferLayer.js
mysql_db.js
Before this change many errors were silently ignored. Now they are propagated up, partially addressing #153.