-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Feature/david/journal mode #1157
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
Conversation
aitorvs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Left couple comments of things I think we need to remove:
- the version 5.80.0
- the debuggable flag
other than that, I tested and works as expected. Awesome job @malmstein
app/build.gradle
Outdated
| } | ||
| release { | ||
| minifyEnabled false | ||
| debuggable true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we want to remove this (?)
|
|
||
| val CHANGE_JOURNAL_ON_OPEN = object : RoomDatabase.Callback() { | ||
| override fun onOpen(db: SupportSQLiteDatabase) { | ||
| db.query("PRAGMA journal_mode=DELETE;").use { cursor -> cursor.moveToFirst() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pragma for the win
app/version/version.properties
Outdated
| @@ -1 +1 @@ | |||
| VERSION=5.79.0 No newline at end of file | |||
| VERSION=5.80.0 No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to remove this too
Task/Issue URL: https://app.asana.com/0/1157893581871903/1200123654543284
Description:
Background
Change the journal type from write ahead logging to delete.
This means we won't have to close the database hence avoiding all the threading issues.
Estimate: Couple of days
This approach is much faster and solves the main issue at hand, thus the preferred approach
Steps to test this PR:
Download apk from Jenkins https://jenkins.duckduckgo.com/job/android%20-%20duckduckgo%20app%20release/255/
Internal references:
Software Engineering Expectations
Technical Design Template