Database Architecture Flashcards
(172 cards)
Architecture
components of a computer system and the relationships between components
Tools
Directly interact with database users and administrators, and send queries to the query processor
Query Processor
Manages connections from multiple users and compiles queries into low-level instructions for the storage engine
Storage Engine/Storage Manager
Executes instructions, manages indexes, and interacts with the file system
File System
Accesses data on storage media. The file system contains both system and user data, such as log files, tables, and indexes
MySQL Server/Enterprise
MySQL server - free, MySQL enterprise - paid
Monitor
Collects and displays information on CPU, memory, and index utilization, as well as queries and results.
Audit
Keeps track of all database changes. It also tracks the time of change and who made the change.
Utility Programs
Program suite includes 30 tools grouped into five categories. Installation, Client, Administrative, Developer, and miscellaneous tools.
Connection
Link between tools and the query processor. Each connection specifies a database name, server address, logon name, and password.
Execution plan
Detailed, low-level sequence of steps that specify exactly how to process a query
Query Parser
Check each query for syntax errors and converts valid queries to an internal representation
Query Optimizer
Reads the internal representation, generates alternative execution plans, estimated execution times, and selects the fastest plan. Estimates are based on heuristics and statistics about data, like the number of rows in each table and the number of values in each column. These statistics are maintained in the data dictionary described below.
Cache Manager
Query processor layer has a cache manager that stores reusable information in main memory
Buffer Manager
Retains data blocks from the file system for possible reuse to reduce access time
Buffer
Data blocks retained in an area of main memory
Least Recently Used/LRU
LRU algorithm tracks the time each block was last accessed and, when space is needed, discards ‘stale’ blocksC
Catalog, Data dictionary
Directory of tables, columns, keys, indexes, and other objects in a relational database
Tiers
Computers linked by a network are often grouped in layers, called tiers, and arranged in a hierarhcy.
Single-Tier Architecture
Consists of a personal or corporate computer connected directly to monitors
Multi-tier Architecture
Complex corporate and government applications have increasingly been implemented in a multi-tier architecture
Web Architecture
Consists of web browsers and web servers communicating over the internet. Web browsers on the top tier, webservers on the middle tier, application servers, and then services on the bottom
On-premise
Installed and run on a customer computers
Cloud Services
Computer services on a lower tier of a web architecture. Cloud services are made available over the internet to customers for a monthly fee