Search code examples
mysqlsqldatabaseoptimizationquery-optimization

Does one MySQL Query Freeze All Other Upcoming Queries?


I want to perform a MySQL query once every hour to count some rows from one table (over 10M rows) and update an int value in a different table. The query takes about 1-2 minutes to complete. While processing this query, would I be able to run other MySQL SELECT queries?


Solution

  • Yes, database structures are intended for near simultaneous access of data. The speed of each query is dependent on server resources allocated to each, so you may experience slower query time than expected.