Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleksiikraievyi/highload-sw-arch-hw-08
HW 8 for highload software architecture courses. https://prjctr.com/course/highload-software-architecture?gclid=EAIaIQobChMI7OOMjvf78wIVRjcYCh1axwtgEAAYASAAEgKm2_D_BwE
https://github.com/oleksiikraievyi/highload-sw-arch-hw-08
Last synced: 11 days ago
JSON representation
HW 8 for highload software architecture courses. https://prjctr.com/course/highload-software-architecture?gclid=EAIaIQobChMI7OOMjvf78wIVRjcYCh1axwtgEAAYASAAEgKm2_D_BwE
- Host: GitHub
- URL: https://github.com/oleksiikraievyi/highload-sw-arch-hw-08
- Owner: oleksiikraievyi
- Created: 2021-11-26T11:17:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-26T21:39:46.000Z (about 3 years ago)
- Last Synced: 2024-06-20T05:13:25.657Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# highload-sw-arch-hw-08
# Prerequisites
* docker
* linux + bash# 1. Run MySQL with predefined innodb_flush_log_at_trx_commit in ./my-sql/mysql-config.cnf (default 0) + seed data + run queries with different indexes
```
./run.sh
```# 2. Run cleanup script
```
./cleanup.sh
```# Querying comparison
| Index | Query Type | Avg exec time |
| ------------- |:-------------:| -----:|
| BTREE | Exact Match | 3.5 ms |
| BTREE | Range | 14.5 ms |
| HASH | Exact Match | 3ms |
| HASH | Range | 32 ms |
| NO INDEX | Exact Match | 2200 ms |
| NO INDEX | Range | 3880 ms |# Inserting comparison
| innodb_flush_log_at_trx_commit value | Inserting time |
| ------------- |:-------------:|
| 0 | 65 sec |
| 1 | 90 sec |
| 2 | 51 sec |