I used SQL Server Compact edition v4.
When I get new from entities, it takes 1 second, but when I count from a table with only one record, it takes 4 seconds.
I used Entity Framework and SQL Server Compact Edition.
What is the reason for this slow speed on computers with a low configuration?
var db = new Entities(); // 1 second
db.User.count(); // 4 seconds
Opening a connection can be slow, so a possible solution is to open the connection once at app startup and keep that connection open for the lifetime of the app.