Click here to Skip to main content
15,890,282 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre26-May-15 3:24
professionalSascha Lefèvre26-May-15 3:24 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
satc26-May-15 22:13
satc26-May-15 22:13 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre27-May-15 3:19
professionalSascha Lefèvre27-May-15 3:19 
QuestionDrag & drop operation details Pin
satc25-May-15 22:08
satc25-May-15 22:08 
AnswerRe: Drag & drop operation details Pin
Dave Kreskowiak26-May-15 3:08
mveDave Kreskowiak26-May-15 3:08 
GeneralRe: Drag & drop operation details Pin
satc26-May-15 17:59
satc26-May-15 17:59 
GeneralRe: Drag & drop operation details Pin
Dave Kreskowiak27-May-15 2:19
mveDave Kreskowiak27-May-15 2:19 
QuestionEntity Framework : Too slow when executing the first query Pin
satc24-May-15 16:22
satc24-May-15 16:22 
Hello !
I'm creating an application in VB.net 2013 , with entity Framework 6 and SQL server 2008R2.

I have noticed that every query that run for the first time ( against a specific entity ) , is too slow comparing with other queries.

For example :
Dim  query= ( For t in context.Mytable1 where t.nr>5 select t).Tolist --------- Read only 1 records - 25 seconds

Second execution
 Dim  query= ( For t in context.Mytable1 where t.nr<5 select t).Tolist --------- Read 400 records - 2 seconds

If I try to execute a query against another entity , it's the same scenario , the first time is too slow.

I have tried to use pre-generated views using a tool on NuGet , but there;s no difference.

What can I do ?
Thank you 1

modified 25-May-15 3:51am.

AnswerRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 21:42
mveRichard MacCutchan24-May-15 21:42 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 21:50
satc24-May-15 21:50 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 22:15
mveRichard MacCutchan24-May-15 22:15 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 22:49
satc24-May-15 22:49 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 23:09
mveRichard MacCutchan24-May-15 23:09 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 23:15
satc24-May-15 23:15 
SuggestionRe: Entity Framework : Too slow when executing the first query Pin
Richard Deeming27-May-15 2:10
mveRichard Deeming27-May-15 2:10 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Eddy Vluggen24-May-15 23:30
professionalEddy Vluggen24-May-15 23:30 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Dave Kreskowiak25-May-15 3:46
mveDave Kreskowiak25-May-15 3:46 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc25-May-15 6:34
satc25-May-15 6:34 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Dave Kreskowiak25-May-15 6:37
mveDave Kreskowiak25-May-15 6:37 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc25-May-15 6:49
satc25-May-15 6:49 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Dave Kreskowiak25-May-15 8:04
mveDave Kreskowiak25-May-15 8:04 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc25-May-15 8:15
satc25-May-15 8:15 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Mycroft Holmes25-May-15 13:05
professionalMycroft Holmes25-May-15 13:05 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Sascha Lefèvre25-May-15 15:12
professionalSascha Lefèvre25-May-15 15:12 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Mycroft Holmes25-May-15 15:45
professionalMycroft Holmes25-May-15 15:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.