How to optimize this MySQL slow (very slow) query?
By : Robby Schanilec
Date : March 29 2020, 07:55 AM
Hope this helps Drop the list of names into a temporary table and then do an inner join on the two tables. This way is much faster than combing that entire list for each row. Here's the pseudocode: code :
create temporary table names
(name varchar(255));
insert into names values ('n1'),('n2'),...,('nn');
select
a.*
from
mytable a
inner join names b on
a.name = b.name
|
MySQL slow query that uses the index and isn't slow when I run it through the profiler
By : Emily Michael
Date : March 29 2020, 07:55 AM
this will help You have too much data for your innodb_log_buffer. What are the values of: code :
innodb_buffer_pool_size
innodb_log_file_size
|
Identify slow query without slow query logs in mysql server
By : YardenV4
Date : March 29 2020, 07:55 AM
I hope this helps . I find the slow to be the best source of what is bogging down the server. Suggest you start will a moderately high value of long_query_time. This will minimize the I/O and disk space. Fix the queries that it finds, if you can.
|
Why MySQL query from mysql-slow-log is not appearing to be slow when run in PHPMyAdmin?
By : zertfs
Date : March 29 2020, 07:55 AM
will help you I have a query responsible for output of clients list that is regularly run by users. , Add INDEX(category, status, city)
|
EF core 2 first query slow
By : Dashyn
Date : March 29 2020, 07:55 AM
it helps some times The EF by default tracks all the entities you run queries against. When you run it for the first time the track change mechanism kicks in... that's why it takes a little bit longer. code :
var items = DbContext.MyDbSet
.Include(SecondObject)
.AsNoTracking()
.ToList();
|