Section 4 - exchanging data Flashcards
What does ACID stand for?
Atomicity, Consistency, Isolation, durability
Name 5 automated transaction methods
Smart card readers,
barcode readers,
scanners,
optical character recognition,
optical mark recognition
What 4 ways can data from transaction processing data be sent to a database?
automatically using DBMS software,
typing it into a customized form,
importing it from a spreadsheet or file,
using EDI (Electronic Data Interchange)
What is Electronic Data Interchange (EDI)?
EDI is the computer to computer exchange of documents such as purchases, invoices or shipping documents between businesses or business partners.
What needs to happen to EDI data to make it useable?
EDI data needs to be translated by EDI translation software in order to be added to a company database
What is a transaction in terms of databases?
A single logical database operation
What is the purpose of ACID?
To ensure the integrity of a database is maintained under all circumstances
What does ACID do practically?
Guarantees that transactions are processed reliably
What does Atomicity in ACID mean?
A transaction or query is either fully processed or not processed at all. It is not possibly to execute only part of a transaction.
What does Consistency in ACID mean? (use referential integrity)
Consistency ensures no transaction can violate the pre-defined rules for data validation. Referential integrity, defined when the database is set up, will always be upheld
What does Isolation mean in ACID?
Isolation ensures that concurrent execution of transactions gives the same result as if the transactions were executed one after another.
In what kind of database is Isolation important?
Multi-user databases.
What does Durability mean in ACID?
Durability ensures that once a transaction has been committed then it will remain committed even in the event of a power cut.
How is Durability achieved in a database?
As each part of a transaction is completed, it is held on a buffer disk until all elements of the transaction have been completed.
What does record-locking do?
It prevents simultaneous access to elements in a database to prevent updates being lost or inconsistencies in the database arising.
How does a deadlock happen with record-locking?
If two users attempt to edit two different records, they can lock both records and cause a deadlock
What is serialization?
Serialization is a Database Management system that ensures transaction do not overlap in time and therefore cannot interfere with each other.
Name 2 serialization techniques
Timestamp ordering
Commitment ordering
How does timestamp ordering work?
A transaction is given a read and write timestamp. If the user tries to save an update and the read timestamp is not the same as when they started, the DBMS knows another user has accessed the same object.
How does commitment ordering work?
Transactions are ordered in terms of their dependencies on each other as well as the time they were initiated. It prevents deadlocking by blocking one request until another one is completed.
How do many systems use redundancy to ensure they have no database downtime?
They have duplicate hardware in a separate geographical location that automatically takes over the main database if it goes down
Why might someone compress a file?
To reduce data usage when transferring over the internet
To allow a file to be posted online
To store a file using less data
Name 3 lossy compression examples
JPG
MP3
AVC (video)
Name 3 lossless compression examples
GIF
PNG
ZIP