不要ADO.Net数据表有索引?数据表、索引、ADO、Net

由网友(亡夢愛人)分享简介:我使用VSTS 2008 + C#+净3.5 + SQL Server 2008的+ ADO.Net。如果我用ADO.Net的数据表,并在数据库表中加载一个表从数据库中,我定义了几个指标的放在桌子上。我的问题是,无论是在ADO.Net数据表,有相关指标(与我对物理数据库表上创建索引),以提高数据表上的某些经营业绩?I...

我使用VSTS 2008 + C#+净3.5 + SQL Server 2008的+ ADO.Net。如果我用ADO.Net的数据表,并在数据库表中加载一个表从数据库中,我定义了几个指标的放在桌子上。我的问题是,无论是在ADO.Net数据表,有相关指标(与我对物理数据库表上创建索引),以提高数据表上的某些经营业绩?

I am using VSTS 2008 + C# + .Net 3.5 + SQL Server 2008 + ADO.Net. If I load a table from a database by using a DataTable of ADO.Net, and in the database table, I defined a couple of indexes on the table. My question is, whether on the ADO.Net DataTable, there is related index (the same as the indexes I created on physical database table) to improve certain operation performance on DataTable?

在此先感谢, 乔治

推荐答案

乔治

答案是否定的。

实际上,可以在内部使用某种索引,但只作为一个实现细节。例如,如果你创建一个外键约束,也许这就是协助指数。不过,这并不关系到开发商。

Actually, some sort of indexing may be used internally, but only as an implementation detail. For instance, if you create a foreign key constraint, maybe that's assisted by an index. But it doesn't matter to a developer.

阅读全文

相关推荐

最新文章