I have a mysql table with 2 gb with 500k rows, and I run the following query on a system with no load.
select * from mytable
where name in ('n1', 'n2', 'n3', 'n4', ... bunch more... )
order by salary
A file port is required and between 50 and 70 seconds.
When you delete the salary order and perform sorting in the application, the total execution time (including sorting) is reduced to approximately 25-30 seconds. But that is still too much.
Any idea how I can speed this up?
Thanks.
source
share