I am using below code to add 7000 airport choices into a Searchtemplate from a database. It takes 2-3 secs for searchtemplate to be loaded with the choices. Any faster method? Thanks
B4X:
Sub airportquery
Dim rs As ResultSet= Main.SQL1.ExecQuery( "SELECT airport FROM " & Main.DBTableplaces & " ORDER BY airport ")
Dim mylist as list
mylist.initialize
Do While rs.NextRow
mylist.Add(rs.GetString("airport")) '7000 airport rows
Loop
SearchTemplateairport.SetItems(mylist)
rs.close
End Sub