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