개념
참조 테이블은 휘발성 테이블과 마찬가지로 모든 데이터를 메모리에 상주시킴으로써 빠른 질의 처리를 수행할 수 있다.
또한 데이터의 입력 및 변경에 대해서 디스크에 반영함으로써 데이터의 영구성을 보장한다. 휘발성 테이블과 비교하여 질의 처리 성능은 동일하지만 데이터 입력 및 변경 성능은 다소 떨어진다.
이 테이블의 특성은 다음과 같다.
낮은 입력/갱신 성능
휘발성 테이블과는 달리, 디스크 데이터 이미지 유지에 따른 입력 및 갱신 성능이 낮으므로 대시보드 (Dashboard) 등 실시간 데이터 표현을 위한 테이블에는 부적합하다.
스키마 보존
역시 휘발성 테이블과는 달리, 참조 테이블의 구조 (스키마) 정보는 서버 재시작 후에도 유지된다. 해당 테이블을 삭제하기 위해서는 명시적으로 DROP TABLE
를 수행해야 한다.
데이터 보존
참조 테이블은 휘발성 테이블과 달리 서버 재시작 시 데이터가 서버 종료 직전의 상태로 복구된다.
인덱스 제공
...
Concept
...
Like the volatile table, the lookup table resides in the memory, so that it can perform fast query processing.
In addition, data input and change are reflected on disk to ensure data permanence. Compared with the volatile table, the query processing performance is the same, but the data input and change performance is somewhat lower.
The characteristics of this table are as follows.
Low Input / Update Performance
Unlike volatile tables, the performance of input and update due to the maintenance of disk data images is low, making them unsuitable for tables for real-time data representation such as dashboards.
Schema Preservation
Again, unlike volatile tables, the structure (schema) information in the lookup table is retained even after the server is restarted. You must explicitly use DROP TABLE
to drop the table .
Data Preservation
Unlike the volatile table, the lookup table is restored to its original state when the server is restarted.Providing Index
Index
Like the volatile table, it provides a RED-BLACK index. Therefore, it can be efficiently used in the search process or the join process with the log table.
작업 방법
...
Child pages (Children Display) |
---|