I have a table which contains approx. 150000 records. It could be change.. I mean more.. I don't know. And It's an access db (its an obligation) I use .net framework 3.0
vb.net or c# don't matter..
I used that code
con = New OleDbConnection("provider=microsoft.jet.oledb.4.0; data source=db.mdb")
cmd = New OleDbCommand("Select * from TAPU_GEMLIK", con)
da = New OleDbDataAdapter(cmd)
ds = New DataSet()
da.Fill(ds)
DgKayitlar.DataSource = ds.Tables(0)
Well, my program will apply some filtres to records.
I have two questions
1-
da.Fill(ds)
DgKayitlar.DataSource = ds.Tables(0)
in here, the program waits for a while. If records increas,it will wait for much. What can I use for it? I thought that I can use thread, but I am not sure.
2- each filters queries database. filter means just a condition, such as
where Name=..... and Surname... etc.
is it a good way to query database or I must get result of query from gridview? Which could be faster or better?
Edit: I can't paging. because program will already search each records from database. firstly, I need to get all records from db.