Database ( DB )/Database

파티션테이블 제약사항

노루아부지 2019. 8. 11. 10:21

1. 오라클

- EE 이상 버전에서 사용가능

- https://docs.oracle.com/cd/E11882_01/license.112/e47877/editions.htm#DBLIC109

2. MariaDB

- pk만 파티션으로 분리 가능 ( 날짜단위로 파티션 테이블을 만들려면 pk에 날짜가 포함되어야 함 )

- 모든 파티션은 동일한 스토리지 엔진 사용 

- 테이블과 인덱스를 별도로 파티션 불가(테이블과 인덱스 같이 해야함) 

- 파티션 된 테이블은 foregin key를 지원불가 

- 파티션 된 테이블은 FullText Index를 지원 불가 

- 파티션 된 테이블은 Geometry 칼럼 타입 지원 불가

- 한 테이블당 파티션의 개수는 최대 1024개 

- Temp Table 은 파티션 사용 불가

- Partition 값은 반드시 정수형 타입

3. MySql

- 모든 파티션은 동일한 스토리지 엔진 사용

- 파티션별 다른 엔진을 지정하여도 에러가 발생하지는 않지만 적용되는것은 아니다.

- 테이블과 인덱스를 별도로 파티션 할수는 없다. 테이블과 인덱스를 같이 Partitioning 하여야 한다.

- Partition 된 테이블은 foreign Key를 지원하지 않는다

- Partition 된 테이블은 FullText Index 를 지원하지 않는다.

- Partition 된 테이블은 Geometry(point, geometry...) 컬럼 타입을 지원하지 않는다.

- 한 테이블당 파티션의 갯수는 최대 1,024개이다.

- Temp Table 은 파티션 사용 불가.

- Partition 값은 정수형이어야 한다.

- 테이블이 Unique 또는 Primary Key를 가지고 있다면, 파티션키는 모든 Unique 또는 Primary Key의 일부 또는 모든 컬럼을 포함해야 한다.

- MySql SE( Standard Edition)에서는 미지원

https://www.mysql.com/products/

4. MsSql

- 2005부터 파티션 지원

- 2008까지 range만 지원

https://docs.microsoft.com/ko-kr/sql/sql-server/editions-and-components-of-sql-server-2016

- 기본버전도 파티션 지원은 하는듯

- 단, 병렬처리 안됨

 

 

 

 

 

 

 

 

 

 

 

파티션 테이블 지원 여부

1. Oracle

- EE 버전만 지원

- https://docs.oracle.com/cd/E11882_01/license.112/e47877/editions.htm#DBLIC109

 

Oracle Database Editions

SQL Tuning Sets N N Y SQL Tuning Sets can also be accessed by way of database server APIs and command-line interfaces. The following subprograms, part of the DBMS_SQLTUNE package, provide an interface to manage SQL Tuning Sets and are part of Oracle Databa

docs.oracle.com

 

2. MariaDB

- 다 지원

 

3. MySql

- EE 이상부터 지원

- https://www.mysql.com/products/

 

MySQL :: MySQL Editions

MySQL Editions MySQL is the world's most popular open source database. Whether you are a fast growing web property, technology ISV or large enterprise, MySQL can cost-effectively help you deliver high performance, scalable database applications. MySQL Comm

www.mysql.com

 

4. MsSql

- 모두 지원

- 단, SE에서는 병렬처리 안됨

- https://docs.microsoft.com/ko-kr/sql/sql-server/editions-and-components-of-sql-server-2016

 

SQL Server 2016의 버전 및 지원하는 기능 - SQL Server

SQL Server 2016의 버전 및 지원하는 기능Editions and supported features of SQL Server 2016 이 문서의 내용 --> 적용 대상: 적용 대상:SQL Server Azure SQL Database Azure SQL Data Warehouse 병렬 데이터 웨어하우스APPLIES TO: SQL Server Azure SQL Database Azure SQL Data Warehouse Parallel Data Wa

docs.microsoft.com

728x90
loading