Overview of Indexes【每日一译】--20121209

本文详细介绍了Oracle数据库中索引的概念及不同类型的索引方案,包括B-树索引、哈希聚簇索引等,并解释了如何利用索引来提高SQL语句的执行效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Indexes are optional structures associated with tables and clusters. You can create
indexes on one or more columns of a table to speed SQL statement execution on that
table. Just as the index in this manual helps you locate information faster than if there
were no index, an Oracle index provides a faster access path to table data. Indexes are

the primary means of reducing disk I/O when properly used.

索引是可选结构它与表和聚簇表相关。你可以创建一个或者多个表的索引去加速SQL语句的执行

在那个表上。作为索引通过这种方法帮你更快的定位信息比起没有索引的情况,ORACLE索引提供

一个快速访问表数据的访问路径。索引是主要减少磁盘I/O主要方法当使用索引适当的时候。

You can create many indexes for a table as long as the combination of columns differs
for each index. You can create more than one index using the same columns if you
specify distinctly different combinations of the columns. For example, the following

statements specify valid combinations:

你可以创建多个索引对于一个表只要多个索引的组合不同于每一个索引。你可以创建多个索引使用相同的列

如果你指定唯一不同的列组合。比如,以下的语句指定可用的组合。

CREATE INDEX employees_idx1 ON employees (last_name, job_id);
CREATE INDEX employees_idx2 ON employees (job_id, last_name);
Oracle provides several indexing schemes, which provide complementary
performance functionality:
■ B-tree indexes
■ B-tree cluster indexes
■ Hash cluster indexes
■ Reverse key indexes
■ Bitmap indexes
■ Bitmap join indexes
Oracle also provides support for function-based indexes and domain indexes specific
to an application or cartridge.
The absence or presence of an index does not require a change in the wording of any

SQL statement. An index is merely a fast access path to the data. It affects only the

speed of execution. Given a data value that has been indexed, the index points directly
to the location of the rows containing that value.

ORACLE也提供支持基于函数索引和域索引指定到一个应用或黑盒
Indexes are logically and physically independent of the data in the associated table.
You can create or drop an index at any time without affecting the base tables or other
indexes. If you drop an index, all applications continue to work. However, access of
previously indexed data can be slower. Indexes, as independent structures, require
storage space.

索引是逻辑和物理依赖于相关表的数据。你可以创建或者DROP一个索引在任何时间不影响

基表或者其它索引。如果你删除一个索引,所有应用继续工作。但是之前的被索引化数据访问

会变慢。索引作为独立结构,要求存储空间。

Oracle automatically maintains and uses indexes after they are created. Oracle
automatically reflects changes to data, such as adding new rows, updating rows, or
deleting rows, in all relevant indexes with no additional action by users.
Retrieval performance of indexed data remains almost constant, even as new rows are
inserted. However, the presence of many indexes on a table decreases the performance
of updates, deletes, and inserts, because Oracle must also update the indexes
associated with the table.
The optimizer can use an existing index to build another index. This results in a much
faster index build.

ORACLE自动维护和使用索引在它们创建后。O自动应用数据的修改,比如增加新行,更新行

或者删除行,在与索引所有的相关不需要额外动作对于用户。

检索索引性能数据保留大多数常量,甚至新行插入。但是,非常多索引存在一个表上将降低更新

删除和插入性能,因为O必须也要更新与表相关的索引。

优化器能使用一个已存在的索引去创建另一个索引,这导致一个更快的索引创建。

资源下载链接为: https://pan.quark.cn/s/22ca96b7bd39 在当今的软件开发领域,自动化构建与发布是提升开发效率和项目质量的关键环节。Jenkins Pipeline作为种强大的自动化工具,能够有效助力Java项目的快速构建、测试及部署。本文将详细介绍如何利用Jenkins Pipeline实现Java项目的自动化构建与发布。 Jenkins Pipeline简介 Jenkins Pipeline是运行在Jenkins上的套工作流框架,它将原本分散在单个或多个节点上独立运行的任务串联起来,实现复杂流程的编排与可视化。它是Jenkins 2.X的核心特性之,推动了Jenkins从持续集成(CI)向持续交付(CD)及DevOps的转变。 创建Pipeline项目 要使用Jenkins Pipeline自动化构建发布Java项目,首先需要创建Pipeline项目。具体步骤如下: 登录Jenkins,点击“新建项”,选择“Pipeline”。 输入项目名称和描述,点击“确定”。 在Pipeline脚本中定义项目字典、发版脚本和预发布脚本。 编写Pipeline脚本 Pipeline脚本是Jenkins Pipeline的核心,用于定义自动化构建和发布的流程。以下是个简单的Pipeline脚本示例: 在上述脚本中,定义了四个阶段:Checkout、Build、Push package和Deploy/Rollback。每个阶段都可以根据实际需求进行配置和调整。 通过Jenkins Pipeline自动化构建发布Java项目,可以显著提升开发效率和项目质量。借助Pipeline,我们能够轻松实现自动化构建、测试和部署,从而提高项目的整体质量和可靠性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值