Optimizing SQL-CE

  • Thread starter Thread starter moko
  • Start date Start date
moko said:
Are there any tips and tricks to optimize SQL-CE used by .NET CF
applications ?

I've found that doing "normal" inserts can be very slow - doing them
from native OLE DB code (either your own or SSCEDirect) helps
enormously.

Also, filling a DataTable without loading the key in the schema (IIRC)
helped a lot when loading the data from the database.

No doubt others have more ideas.
 
moko said:
Are there any tips and tricks to optimize SQL-CE used by .NET CF
applications ?

This might be obvious, but creating a index in the right place improved
a query from seconds to a fraction of a second (about 55 000 records).

regards,
Finn
 
Back
Top