Skip to content

Commit

Permalink
Increase Cursor Window Size to 20mb to load larger posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Horta committed May 29, 2024
1 parent 0254e9e commit a1f3c73
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
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)
}

This file was deleted.

0 comments on commit a1f3c73

Please sign in to comment.