S
S
swcalc2018-03-04 22:40:15
PHP
swcalc, 2018-03-04 22:40:15

What are some ways to reduce mysql database load?

There is a database and a simple question-answer service, the hoster continually reports that the limit has been exceeded ... Despite the fact that the CPU load is minimal, it does not exceed 5-6% (the database enters for 100).
Are there practices in using some kind of buffer? It can store everything in XML (transfer data from the database to the server and partially load it) up to a certain point, and synchronize once a day, for example.
So far, everything is simple, received the data, prepared a request - executed.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
alexdora, 2018-03-05
@alexdora

Most often, the problem is that people do not have indexes. It is possible to lower from 100% load sometimes to zero by setting one index

A
Armenian Radio, 2018-03-04
@gbg

Storing data in XML is a great way to increase server load by up to 300%. This format is not intended for processing (especially for multi-threaded) data, it is suitable for transferring information between systems.
There is a buffer for the database, there are caches, that's all. Do you have indexes on your tables?

D
Dimonchik, 2018-03-04
@dimonchik2013

if the host is not a server, which means that all sorts of caches are meaningless
, only indexes remain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question