Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 |