transactions, views, and indexes

Source: Internet
Author: User

Today we learned about transactions, views, and indexes!! This is a very magical thing! Let's talk about the most amazing things first, what do you mean by business? A transaction is an indivisible whole, multiple executions in a transaction, die. Either the execution succeeds or both fail. ( a wing of the wing, a loss of damage )

The transaction has 4 magical features:

ACID principle

        atomicity (atomicity )

        consistency ( Consistency )

  isolation ( isolation)  : Two transactions between

Permanent (durabilily)

Transaction classification

an explicit transaction ; The transactions that you write are explicit transactions

An implicit transaction

Automatically commit transactions

View!

How to create a view

Create View Vw_stuinfo

As

Select * FROM Student

Select * from Vw_stuinfo

indexing (index) Acceleratethe records in the tableRetrieval Speed, while reducing the speed of additions and deletions

1. must have been University

2. Computer Science

3. data structure: two fork tree

Index: is an internal method of SQL Server orchestration data. It provides a way for SQL Server to orchestrate query data

Fill factor

When we create an index, we can specify the scale at which the index page is occupied, by filling the factor .

Give the index a few leeway to rebuild.

Index will reduce the efficiency of adding and deleting

A wing of honor, a loss of damage

transactions, views, and indexes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.