Split your database
Nicolai Plum Booking.com Database Engineering
Split your database Nicolai Plum Booking.com Database Engineering - - PowerPoint PPT Presentation
Split your database Nicolai Plum Booking.com Database Engineering Before 2 After 3 Why? Size Query time, query latency conflicting workloads Business or architecture reasons Regulatory compliance Easier PCI DSS,
Nicolai Plum Booking.com Database Engineering
2
3
4
5
ps-top 0.7.5 - 18:44:30 db-101 / 5.7.19-log, up 31d 9h 39m 2 Table (table_io_waits_summary_by_table) 44 rows Ops %| Fetch Insert Update Delete|Table Name 13.49 k 50.6%| 99.8% 0.1% 0.1%|bdb.Inventory 6.97 k 26.1%| 2.6% 94.8% 2.5% 0.1%|bdb.Catalogue 1.36 k 5.1%| 50.9% 24.5% 24.5%|bdb.Transaction 963 3.5%| 66.7% 33.3% |bdb.Delivery 597 2.2%| 51.1% 25.3% 23.6% |bdb.Customer 396 1.4%| 4.5% 94.4% 1.0%|bdb.Reviews
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use sys; call create_synonym_db(’sales', ’product');
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
nicolai.plum@booking.com