title: Entity Framework Code-First too slow at startup
body: <p>I know this has been asked a lot before, but I still haven't found a working fix.</p>
  
  <p>I'm creating a desktop application which will regularly be started and stopped. The database is a MySQL database stored online and I'm using the newest version of EF and the MySQL connector.</p>
  
  <p>I'm also working code-first. For now, I only have 3 small entities, but these will grow a lot in time. The database is generated already at startup, so nothing needs to be created anymore.</p>
  
  <p>Every time the application is started (even when deployed), retreiving the first data from the database (only like 50 records, but I've also tried only 10 and it doesn't make any difference) is slow: around 5 seconds. After that, the next queries are pretty fast (around 1 second).</p>
  
  <p>I've already tried generating views, but it doesn't change anything. I also create only 1 DbContext.</p>
  
  <p>If I attempt to use ADO.NET, I get the results almost instantly, even on the first query (retreiving all 50 records), so it has nothing to do with a connection issue. </p>
  
  <p>I'm not sure what information I have to give in order for you to help me, so feel free to ask more info.</p>
  
  <p>Any idea what I could try? Is it really supposed to take like 5 seconds before the user can start working with the program?</p>