Skip to content
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

MLIBZ-2350 Revert removal of caching db connections in WebSQL. #241

Merged
merged 1 commit into from
Feb 16, 2018

Conversation

gprodanov
Copy link
Contributor

Description

During the mono repo move (I believe. this is the commit here), the caching of database connections was removed. This caused problems when making many operations in websql, since each one would "open" the database. We encountered this in the unit tests suite.

Changes

Add back the caching of "open" databases.

@gprodanov
Copy link
Contributor Author

@thomasconner , why was this removed in the first place? Perhaps we shouldn't bring it back? Also, there didn't seem to be a mechanism for closing or removing these from cache. Is that the way it should be?

@tsvetomir-nedyalkov asked me to take this on, since it's causing problems with integration tests and would force him to disable running the tests on phonegap in general. I had tracked it down to this perticular commit, so I figured it won't be too difficult to revert the change. And if this is all that needs doing, we better do it sooner, rather than later, and have a more robust integration test suite.

@gprodanov gprodanov merged commit 77962dc into master Feb 16, 2018
@gprodanov gprodanov deleted the websql-open-database branch February 16, 2018 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants