-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase Cursor Window Size to 20mb to load larger posts
- Loading branch information
Thomas Horta
committed
May 29, 2024
1 parent
0254e9e
commit a1f3c73
Showing
3 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
WordPress/src/release/java/org/wordpress/android/WPWellSqlConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.wordpress.android | ||
|
||
import android.content.Context | ||
import org.wordpress.android.fluxc.persistence.WellSqlConfig | ||
|
||
class WPWellSqlConfig(context: Context) : WellSqlConfig(context) { | ||
/** | ||
* Increase the cursor window size to 20MB for devices running API 28 and above. This should reduce the | ||
* number of SQLiteBlobTooBigExceptions. Note that this is only called on API 28 and | ||
* above since earlier versions don't allow adjusting the cursor window size. | ||
*/ | ||
@Suppress("MagicNumber") | ||
override fun getCursorWindowSize() = (1024L * 1024L * 20L) | ||
} |
15 changes: 0 additions & 15 deletions
15
WordPress/src/release/java/org/wordpress/android/WellSqlInitializer.kt
This file was deleted.
Oops, something went wrong.