This question is locked. New answers and comments are not allowed.
Hi,
I'm having a problem on the length of time it is taking to insert data to my local telerik storage. I have about 12,000 records in 'items_clients' but its taking me about 40 minutes to insert the records with my 'insertRows_clients' method.
How can I speed up the data insert...is there some other way I should write the below?
Thanks
Dim items_clients = Await Azure_clients_dataPull()
For Each class_client As c_ClientsAg In items_clients
insertRows_clients(class_client)
Next
Sub insertRows_clients(ByVal _results As c_ClientsAg)
Dim context = New Telerik.Storage.Extensions.Context("HandheldsK3_DB", Telerik.Storage.Extensions.DatabaseLocation.Local)
context.Insert(Of c_ClientsAg)(New c_ClientsAg() With {.ID = _results.ID, .a_id = _results.a_id, .account_name = _results.account_name,
.address = _results.address, .place = _results.place, .province = _results.province, .last_paydate = _results.last_paydate,
.paid_amount = _results.paid_amount})
context.SaveChanges()
context.CloseDatabase()
End Sub