What is a maximum size of SQLite database on Android? -


i have sqlite db size on 2.6 gib. (the db contains maps.) db used rmaps app. when move maps parts @ maximum zoom, app closes. however, there no force close message, no report button. so, i've got idea caused reading blocks beyond limit e.g. max(int). since rmaps using simple sql statements, think problem not in rmaps rather in android sqlite driver.

is there size limit of sqlite database on android?

(i have froyo on nexus one, not think problem of froyo.)

log output:

08-14 10:24:51.689 i/activitymanager(   81): starting activity: intent { act=android.intent.action.search flg=0x10000000 cmp=com.robert.maps/.mainmapactivity (has extras) } 08-14 10:25:01.879 e/androidruntime(12441): fatal exception: pool-1-thread-2 08-14 10:25:01.879 e/androidruntime(12441): android.database.sqlite.sqlitediskioexception: disk i/o error 08-14 10:25:01.879 e/androidruntime(12441):     @ android.database.sqlite.sqlitequery.native_fill_window(native method) 08-14 10:25:01.879 e/androidruntime(12441):     @ android.database.sqlite.sqlitequery.fillwindow(sqlitequery.java:70) 08-14 10:25:01.879 e/androidruntime(12441):     @ android.database.sqlite.sqlitecursor.fillwindow(sqlitecursor.java:283) 08-14 10:25:01.879 e/androidruntime(12441):     @ android.database.sqlite.sqlitecursor.getcount(sqlitecursor.java:264) 08-14 10:25:01.879 e/androidruntime(12441):     @ android.database.abstractcursor.movetoposition(abstractcursor.java:171) 08-14 10:25:01.879 e/androidruntime(12441):     @ android.database.abstractcursor.movetofirst(abstractcursor.java:248) 08-14 10:25:01.879 e/androidruntime(12441):     @ com.robert.maps.utils.cashdatabase.gettile(cashdatabase.java:49) 08-14 10:25:01.879 e/androidruntime(12441):     @ org.andnav.osm.views.util.openstreetmaptilefilesystemprovider$7.run(openstreetmaptilefilesystemprovider.java:501) 08-14 10:25:01.879 e/androidruntime(12441):     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1068) 08-14 10:25:01.879 e/androidruntime(12441):     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:561) 08-14 10:25:01.879 e/androidruntime(12441):     @ java.lang.thread.run(thread.java:1096) 08-14 10:25:01.889 i/activitymanager(   81): process com.robert.maps (pid 12441) has died. 08-14 10:25:01.899 i/windowmanager(   81): win death: window{45131410 com.robert.maps/com.robert.maps.mainmapactivity paused=false} 

the sqlite db stored on sd card, there enough space.

i suspect ~2 gigabytes (that might due 32-bit architecture, although programs come largefile support, allowing more that). fortunately android.database.sqlite.sqlitedatabase has following api call returns maximum size database may grow to:

long getmaximumsize() 

eventually might want database sharding ;)


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -