Skip to content

Instantly share code, notes, and snippets.

@donigian
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donigian/564e226809616cc24c34 to your computer and use it in GitHub Desktop.
Save donigian/564e226809616cc24c34 to your computer and use it in GitHub Desktop.
vertical partitioning example
/* 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