K
K
Kirill Petrov2020-10-22 09:18:08
MySQL
Kirill Petrov, 2020-10-22 09:18:08

How to properly store a large table with history in MySQL (MariaDB)?

Greetings! Tell me, there is a table with 10 columns, where the length of each value does not exceed 50 bytes. The table receives ~ 100 records per second in one transaction with an INSERT IGNORE query, now the table size is ~ 10 GB. And she loves to crash when the machine is rebooted. Repair works, but takes a long time. All settings are default.
From the table the data on 2 index columns is constantly requested. The average answer size is 50-60k lines.
Tell me which engine to choose for the table and how to configure the database for optimal operation in this mode?

PS Now I will create a second table where I will put the cache in order to reduce the number of requests to this table

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2020-10-22
@vitaly_il1

And she loves to crash when restarting the machine

With a normal Linux reboot or with a Linux crash?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question