On a 500MHz FS loox 720 Win 2003 SE
The command
on a sql table with 1000 lines* 1000 cols
takes 3 to 4 sek :signOops:
is that ok? Or is it possible to optimize?
on the desktop the same takes maximum 0,03 s (30 ms).
So there is a faktor >100 between it.
Is the way through SQL really the quickest?
Thanks in advance
Bernd
context
The sql tabel was created in this way
The command
B4X:
Reader.Value = Cmd.ExecuteReader
takes 3 to 4 sek :signOops:
is that ok? Or is it possible to optimize?
on the desktop the same takes maximum 0,03 s (30 ms).
So there is a faktor >100 between it.
Is the way through SQL really the quickest?
Thanks in advance
Bernd
context
B4X:
reader.New1 ' SQL-table-read
cmd.CommandText = "Select Alti.* from Alti Limit 1 offset " &y-1
tStrt =dzHw1.GetTickCount
Reader.Value = Cmd.ExecuteReader
tEnd=dzHw1.GetTickCount
tb1.Text =tb1.Text&CrLf&(tEnd-tStrt)/1000
tb1.Refresh
CSIAlti=Reader.GetValue(x-1)
reader.Close
The sql tabel was created in this way
B4X:
table1.LoadCSV(TmpAltiFile, " ",false, true)
table1.RemoveCol("Column1001")
DB3File = SubString(open1.File,0,StrLength(open1.File)-3)&"sl3"
Con.Open("Data Source = " &DB3File)
Con.CreateSQLTable ("Table1","Alti")
con.Close