sql server - Compare calling data from Stored Procedures and .NET 'Entity' objects -


i know what's best (fastest) way gain in performance (memory usage, cpu, ...) between these:

  1. you create .dbml or .edmx file call list of entities follows

    myentitiesdatacontext db = new myentitiesdatacontext(); var models = db.labels.tolist(); 
  2. you create stored procedure, drag/drop on .dbml / .edmx file call follows

    myentitiesdatacontext db = new myentitiesdatacontext(); var models = db.listlabelprocedure(); 

this second way of coding further work because need develop stored procedures yourself.

ps: working big data. smallest table can register 10g. rows

can tell me best approach?

all depend on need datas... if need them .net server side think both approaches similar. if can process them sql server side stored procedure, retrieve result, stored procedure approach idea.

moreover think should carefull linq .tolist() because "load" datas sql server (network , memory usage), if have huge tables, impact asp.net server's memory, call stored procedure won't.

i hope bit


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -