Hello everyone,
I have a table with about 20 columns and everything is fine, when I just add some rows, but the app crashes when the table has more than ~1000 rows.
Is there any limit? Surely it will depend on the smartphone, but 4000 rows shouldn't be a problem - nowadays.
I'm still an absolute beginner. Am I doing something wrong?
Thanks in advance!
I have a table with about 20 columns and everything is fine, when I just add some rows, but the app crashes when the table has more than ~1000 rows.
Is there any limit? Surely it will depend on the smartphone, but 4000 rows shouldn't be a problem - nowadays.
I'm still an absolute beginner. Am I doing something wrong?
B4X:
private Sub readSqlite
Dim sql As SQL
Dim rs As ResultSet
sql.Initialize(File.DirInternal, "testsql.db", False)
'File.Delete(File.DirInternal, "testsql.db")
If File.Exists(File.DirInternal, "testsql.db")= True Then
ToastMessageShow("File exists ... ", True)
Else
ToastMessageShow("File doesn't exist ... ", True)
End If
' sql.ExecQuery("SELECT * FROM liste")
rs = sql.ExecQuery("SELECT * FROM liste LIMIT 10")
For i = 0 To 10
rs.Position = i
ListView.AddSingleLine(rs.GetString("Col1"))
Next
rs.Close
End Sub
Thanks in advance!
Last edited: