03-Indexing-Partitioning
03-Indexing-Partitioning
Lê Hồng Hải
UET-VNUH
Today’s Overview
1 Index
2 Compound index
3 Function Index
4 FTS
2
Indexing
3
Query Explain example
Explain SELECT
employeeNumber,
lastName,
firstName
FROM
employees
WHERE
jobTitle = 'Sales Rep’;
4
Create Index
EXPLAIN SELECT
employeeNumber,
lastName,
firstName
FROM
employees
WHERE
jobTitle = 'Sales Rep';
5
Indexing LIKE Filters
6
Compound Index
7
Compound Index
8
Compound Index
9
Primary Index
10
Descending Index
11
Function Index
12
Function Index
13
FULLTEXT Search (FTS)
14
LIKE Filter
15
Create FULLTEXT index
16
Create FULLTEXT Search
17
Search using FTS
18
Search using FTS
19
Boolean Full-Text Searches
20
Boolean Full-Text Searches
22
PARTITIONING
PARTITIONING
24
PARTITIONING
25
Advantages
26
Partitioning types
27
Key Partitioning
28
Range Partitioning
29
List Partitioning
30
Partition Management
ALTER TABLE
PARTITION BY, ADD PARTITION, DROP PARTITION,
REORGANIZE PARTITION, COALESCE PARTITION
31
Partition Management
32
Partition Information
33
Partitioning on Workbench
34
MySQL Partitioning Limitations
https://dev.mysql.com/doc/refman/5.7/en/partitioning-
limitations.html
35
THANKS YOU