I
I
Ivan Ivanov2020-06-30 18:19:24
MySQL
Ivan Ivanov, 2020-06-30 18:19:24

Why are mysql queries taking a long time?

There is a table, in it 12 million records. With any selection (example: select * from table where url = "test" limit 1), memory is slowly running out (it has 8 GB of RAM in total) and, of course, it is not possible to get a record. No matter how I try to change the query, nothing helps.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2020-06-30
@vitaly_il1

I agree with Anton Anton - memory should not leak.

it has 8 GB of RAM in total

How much does MySQL take? What else is running?
Send us the output of
top -b -o +%MEM | head -n 15

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question