采用LINQ预编译技术提高查询数据库性能  被引量:1

Using compiled LINQ to Improve Query Database Performance

在线阅读下载全文

作  者:袁尚华[1] 

机构地区:[1]四川化工职业技术学院,四川泸州646005

出  处:《电脑编程技巧与维护》2012年第22期42-43,共2页Computer Programming Skills & Maintenance

摘  要:比较了利用LINQ查询数据库时未预编译和预编译的执行效率。如果将首次执行时的编译结果保存在一个静态类中,在全局范围内只需要编译一次,再次查询时就可以直接使用。结果表明,采用预编译技术能够在很大程度上提高查询效率。Compared the compiled LINQ query with the without compiled.The first execution of the compiled LINQ query results are stored in a static class,in the global scope,only compile it once and the query can be used directly once again. The results show that using compiled LINQ query can significantly improve the query efficiency.

关 键 词:LINQ 预编译 SQL 

分 类 号:TP311.13[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象