General Study Pt2. Flashcards
things i missed out
Phantom Phenomena
Any transaction processing related commands need to be translated into basic and explicit reads and writes on database objects.
Sharing Phenomena
Running concurrent transaction through different isolation levels:
Serializable Read - Not possible Dirty Read/Inconsistent Read/Phantom Read
Repeatable Read - Not possible Inconsistent Read/Phantom Read
Read Committed - Possible Inconsistent Read/Phantom Read
Read Uncommitted - Possible Dirty Read/Inconsistent Read/Phantom Read
Wait for Graph
Draw a graph of the processes and what processes are waiting for what resources. If there are cycles then there is a deadlock.
Two Phase Locking (2PL)
2PL is a concurrency control mechanism used to manage locks, it is in charge of assigning locks and unlocks. It has two phases, growing and shrinking. During the growing phase it hordes locks, and during the shrinking phase it releases locks. This is a strict phase, after a lock is released, no more locks may be attained.
Conflict Serializable
A serializable schedule is conflict serializable if it can be transferred to a serial schedule by swapping non-conflicting operations.
Serial Schedules
A serial schedule executes transactions in their totality. It is correct. It doesn’t allow interleaving.
Recoverable Schedules
it is recoverable, no need to roll back. If no transaction T in S commits until all transactions Ti that have written an item that T reads have committed.(all changes are made before reading)
Cascading Rollback:
Abort a transaction, To avoid this, make sure that every transaction reads only transactions that were written by committed transactions.
Strict Schedule:
On top of cascading rollbacks, writes delayed until all transactions previously written are either committed or aborted.
List of common ports at…
Can find list of common ports at /etc/services on UNIX.
IP
Internet Protocol is part of OS. Address in dotted decimal.
IP: TCP Specification in OS
Allocate local resources -> Define local and remote endpoints -> initiate communication -> send and receive data.
Socket
API to TCP. Created on UNIX as a set of OS calls:
Communication connection point which can be named and addressed
Data Structure
Set of API functions
COM/OLE
COM (Component Object Model) and OLE (Object Linking and Embedding) are technologies developed by Microsoft for creating modular and extensible software components. In the context of distributed databases, COM/OLE can be used to facilitate communication and interaction between different software components or applications.
How does a JAVA RMI work
It does as so:
1. Server sets up service and registers objects
2. Client looks for objects in registry
3. Client retrieves object stub
4. As client uses stub, communicates with server
Interoperability
Interoperability refers to the ability to be able to run a process or referencing a process on another platform or address space.
Producer Consumer
Producers generate tasks or data and consumers process them. Communicate asynchronously through a buffer, preventing resource conflicts.
Master Slave
Master slave is a model in which there is one node which is a master and a number of nodes which are the slaves. The master nodes distributes tasks amongst the slave nodes, in the form of parallel programming.
Creating Parallel Program
1) First we want to break down our task into sub tasks
2) We want to assign each of these sub-tasks to a process
3) We then want to orchestrate synchronization, communication and data access
4) Finally map processes to processors
Technology needed to design Physical DDB
DB Connection (FDW, stored procedures…)
Triggers
Views
Replication