Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Today:
fragmentation
FRAGMENTACIÓN.
Fragmentation Es el Proceso de dividir una
tabla en fragmentos
It is the Process of dividing a table into smaller (partes) de menor tamaño.
fragments (parts). Types: Tipos:
1. Horizontal
1. Horizontal 2. Vertical
2. Vertical 3. Híbrida
Es importante notar que
3. Hybrid cada fragmento se
It is important to note that each fragment is stored in almacena en un sitio
diferente.
a different place. Nota: Una tabla puede
Note: A table can divide into N fragments and each dividir en N fragmentos y
cada fragmento sólo puede
fragment can only belong to one table. pertenecer a una tabla.
SBDD.
DDBS
Un sistema de bases de datos
A distributed database system is defined distribuidas se define como
una colección de múltiples
as a collection of multiple databases that bases de datos que se
are distributed over a communications distribuyen por una red de
comunicaciones y que están
network and that are logically related, relacionadas de manera
forming a single database with a single lógica, formando una única
base de datos con un solo
logical schema. esquema lógico.
1. Create a new table (students – id, code, name) and fragment horizontally according to id (less than 6: group1, less than 11:
group2)
SQL statements Outcome
CREATE DATABASE ex01_oct22;
CREATE TABLE Students (
id int,
code int(10),
name varchar(20)
)
PARTITION BY RANGE (id) (PARTITION group01 VALUES less than (6),
PARTITION group02 VALUES less than (11));
2. Insert 10 records
SQL statements Outcome
INSERT INTO students VALUES (1,1001,'Fernanda',);
INSERT INTO students VALUES (2,1002,'Alejandro',);
INSERT INTO students VALUES (3,1003,'Erick',);
INSERT INTO students VALUES (4,1004,'Victor',);
INSERT INTO students VALUES (5,1005,'Michael',);
INSERT INTO students VALUES (6,1006,'Daniel',);
INSERT INTO students VALUES (7,1007,'Isabelle',);
INSERT INTO students VALUES (8,1008,'Silvia',);
INSERT INTO students VALUES (9,1009,'Alice',);
INSERT INTO students VALUES (10,1010,'Frida',);
Group_a
Group_b
2. Insert 10 records
SQL statements Outcome
Group_a
Group_b
2. Insert 10 records
SQL statements Outcome
Group_a
Group_b
Group_c