Hi,
I'm having a problem with slow dataGridView filling. My table has ~400000 records and it takes about 53 seconds to load the data in my code, while in SqliteAdmin it takes only 9 seconds. Here is the code :
DataSet ds = new DataSet();
string sql = "SELECT rowid, length,sec,usec,sip,dip,protocol,sport,dport,packet_id" +
"FROM "+tableName;
using (SQLiteConnection conn = new SQLiteConnection("Data Source=" + PathToDatabase))
{
using (SQLiteDataAdapter da = new SQLiteDataAdapter(sql, conn))
{
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0].DefaultView;
}
}
Any ideas are welcome!