K
K
keksum6662022-04-12 15:18:02
MySQL
keksum666, 2022-04-12 15:18:02

Should I create an index on a timestamp?

Hello everyone, I came across that a seemingly simple request is being executed for a long time. I understood the reason - these are the conditions in inner joins, and here the question has matured whether it makes sense to create an index on a timestamp? (I use soft delete in laravel)

Below I gave 2 examples and execution time
62556db32c220380534757.jpeg
62556db8c90d9678524857.jpeg

The only difference is that I removed the condition in the last inner join'e

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question