c# - Why opening access table took around 2 minutes? -
i have access database has table around 6k records. when trying open in c# using dataset method, took around 2 minutes open. why happening , how can speed up?
mydataset _dataset = new mydataset(); mydatatableadapter _mydatatableadapter = new mydatatableadapter(); _mydatatableadapter.getdata(); last line tooks long time (around 2 minutes) data.
i created type dataset using vs tools (see here: http://msdn.microsoft.com/en-us/library/04y282hb(v=vs.80).aspx).
then used above code retrieve data out of database. know access slow 6k record, should take such amount of time.
the database local , next application.
problem solved: tim comment: “the table contains large amounts of binary data” checked size of database , 64mbyte! checked tables , there not large binary data there should other reasons database such big, tried compress , size 6mbyte (reasonable!) , code returns data instantly.
Comments
Post a Comment