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:
you create
.dbml
or.edmx
file call list of entities followsmyentitiesdatacontext db = new myentitiesdatacontext(); var models = db.labels.tolist();
you create stored procedure, drag/drop on
.dbml
/.edmx
file call followsmyentitiesdatacontext 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
Post a Comment