Last active
August 29, 2015 14:24
-
-
Save donigian/564e226809616cc24c34 to your computer and use it in GitHub Desktop.
vertical partitioning example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Consider the following table...*/ | |
create table data ( | |
id integer primary key, | |
status char(1) not null, | |
data1 varchar2(10) not null, | |
data2 varchar2(10) not null); | |
/* You can split via most frequent vs rarely used table columns */ | |
create table data_main ( | |
id integer primary key, | |
status char(1) not null, | |
data1 varchar2(10) not null ); | |
create table data_rarely_used ( | |
id integer primary key, | |
data2 varchar2(10) not null, | |
foreign key (id) references data_main (id) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment