不要ADO.Net数据表有索引? [英] Do ADO.Net DataTables have indexes?

查看:110
本文介绍了不要ADO.Net数据表有索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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.

这篇关于不要ADO.Net数据表有索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆