CRUD , ACID , Transaction processing...ect Flashcards
Transaction processing
Operations that are individual and indivisible.
- each transaction must either succeed or fail as a complete unit
- change the contents of the database
CRUD
- Create
- Read
- Update
- Delete
This is the minimum functionality required for a transactional database
Committing
Only making changes to a database when all external aspects of a transaction are complete
ACID
- Atomicity
- Consistency
- Isolation
- Durability
Atomicity
Transactions either fail or succeed , never partially succeed.
- A change in the database must be completed or not at all
Consistency
Transaction must only change the database according to the rules of the database (database must go from one consistent state to another)
Isolation
A transaction must not overwrite or affect another.
- e.g. a ticket is locked so others can not purchase
- this is until purhcase is complete or timed out
Durability
Once a transaction is started its data is protected until it is completed or fails
- changed made by a transaction must persist
Deadlock
2 users are attempting to make changes to the same record at the same time. this will make it impossible to submit one consistant form of the record
- locking the record to one user at a time resolves this problem
- part of isolation in ACID
- machine learning is generally used for this
Data mining
Analysis of large sets of data to identify patterns and relationships (generally for commercial use)
- supermarkets
- amazon (reccomend items)
- medicine (predict problems)