본문 바로가기

DBMS/Vertica10

REFRESH (프로젝션 함수) 00 개요목적: Vertica 안에 Projection이라는 개념이 있는데, 이 Projection을 어떻게 하는  REFRESH() 함수에 대해 정리하기01 REFRESH()1. 정의 및 기능Synchronously refreshes one or more table projections in the foreground, and updates the PROJECTION_REFRESHES system table. If you run REFRESH with no arguments, it refreshes all projections that contain stale data.If a refresh would violate a table or schema disk quota, the operation fail.. 2024. 7. 5.
Segmentation and Partitioning 00 개요Vertica에서 테이블 생성 시 SEGMENTED BY랑 PARTITION BY 둘 다 사용하는데, 둘다 데이터를 분산하는 것인데 어떻게 다른 것인지 알아보기 위해 정리01 Partitioning and Segmentation (파티셔닝과 세그멘테이션)Vertica에서 partitioning과 segmentation은 데이터를 현지화 (localize data) 하는 데에 있어서 각각 다른 개념이고 목적이 다르다1. SegmentationSegmentation은 신속한 데이터 삭제 및 쿼리 성능 (data purges and query performance)을 위해 클러스터 노드들 사이에서 데이터를 정리하고 분산하는 것을 의미Segmentation은 모든 노드들이 쿼리 실행에 참여할 수 있도록.. 2024. 6. 17.
Projection (프로젝션, 데이터 저장소) 00 개요회사에서 코드분석 하는데 VIEW를 만들길래 이것이 뭔가 하고 정리하고자 함01 Projection이란1. Projection 정의 (테이블과 프로젝션)Vertica의 테이블은 논리적인 구조를 정의 할 뿐 데이터를 저장하고 있지 않으며, 데이터를 저장하는 곳은 Projection이라는 물리적인 구조임테이블당 복수 개의 projection을 생성 가능전체 컬럼을 가지는 projection이 반드시 하나 존재해야 하며(super projection), 테이블의 컬럼을 일부만 가지고 projection도 생성 가능또한 테이블과 다른 정렬순서로 데이터를 저장 가능정렬은 항상 ASC(오름)로 정렬됨버티카에서는 table을 anchor table이라고 부르기도 함2. Projection 생성되는 시기Ver.. 2024. 6. 13.
Encoding/Compression Types (인코딩/압축 종류) 00 개요회사에서 코드분석 할 때 sql 파일 안 쿼리문에서 encoding을 COMMONDELTA_COMP이랑 RLE를 많이 사용하는데 이것들이 뭔지 알기 위해 정리하고자 함01 Encoding TypesVertica는 여러가지 encoding 및 compression 종류를 제공함종류설명AUTO (기본값)- ideal for sorted, many-valued columns such as Primary Keys- also suitable for general purpose applications for which no other encoding or compression scheme is applicable- CPU requirements for this type are relatively small.. 2024. 6. 13.
K-Safety (replica), Data Safety, Node Dependencies란 00 개요이 글은 K-safety, datay safety 및 node dependencies에 대한 요약본을 제공이 개념들은 Vertica의 high availability 및 recovery feature들을 고려할 때 중요01 K-Safety란1. K-Safety 정의K-Safety is a measure of fault tolerance in your database cluster (DB 클러스터의 내결함성 측정값)value K = number of replicas of the data that exists in the DB= the number of times the data in the DB cluster is replicated= 클러스터에 존재하는 Pojection 세그먼트의 복사본 수re.. 2024. 6. 12.
vsql admintools 사용하기 00 개요SI 1.0 설치 관련 학습 시 VERTICA DB 접속 확인 및 SI-DB 설치 확인 할 때 vertica를 전에 (며칠 전) 설치했었는데 다시 vsql 명령어를 통해서 DB에 접속하려니까 다음과 같은 에러가 뜸[root@si1dya analytics9.1.4_deploy_dbschema]# vsql -U siuser -w sivsql: could not connect to server: Connection refused Is the server running on host "???" and accepting TCP/IP connections on port 5433?그래서 다음과 같이 입력하여 vertica가 실행되고 있는지 확인해봤는데 실행중이지 않고 있었음[root.. 2024. 5. 7.
install_vertica 옵션 00 개요목적: Scheduler Insight 설치 시 데이터베이스로 Vertica를 사용하는데, Vertica 설치 시 --point-to-point 및  --failure-threshold FAIL을 설정하는 이유에 대해서 알아보고자 research함# sh /opt/vertica/sbin/install_vertica -s sidbserver1,sidbserver2,sidbserver3 -r /data1/VERTICA-9.3.1-30_RHEL7.6/vertica-9.3.1-30.x86_64.RHEL6.rpm -u dbadmin -p lsfadmin --point-to-point --failure-threshold FAIL01 install_vertica Options다음 표는 install_vert.. 2024. 5. 3.
\d 메타 명령어 (Meta-Commands) 00 개요vertica가 설치 된 서버에서 vertica를 vsql로 접속 시 \d 메타 명령어 사용 가능  # /opt/vertica/bin/vsql -U 사용자이름 -w 비밀번호 Welcome to vsql 사용자이름=>예를 들면,# /opt/vertica/bin/vsql -U dbadmin -w siWelcome to vsql dbadmin=>database를 생성하고 table을 생성한 후 /d 명령어를 사용하여 database에 관련된 정보(예, table 목록)들을 조회 가능01 \d 메타 명령어Vertica는 여러 가지 \d 명령어들을 지원함 이 명령어들은 database 객체의 다양한 정보를 반환0. 문법\dCommand [[schema.]patter.. 2024. 4. 15.
VS Code에서 Vertica 연결하기 00 개요 1. 목적 Visual Studio Code (VS Code)에서 Vertica DB에 연결 및 SQL 문 사용하여 데이터 조회하기 2. VS Code란 an open-source platform used for code editing and debugging, syntax highlighting, and code compilation can connect to a container running a different OS and use any VS Code plugin for that environment The code in VS Code can be customized and enhanced through the Extension APIs provides a platform to crea.. 2024. 3. 20.