Queries with OR conditions are commonly used to implement business logic. However, it might be slower than we expected. Although the query below scans only 1 million rows, it runs for 6,7254 seconds. # User@Host: msandbox[msandbox] @ localhost [127.0.0.1] Id: 188 # Schema: Last_errno: 1160 Killed: 0 # Query_time: 67254.081455 Lock_time: 0.000006 Rows_sent: 1 Rows_examined: 1000000 Rows_affected: 0 Bytes_sent: 0 ...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Jinyou
Contact Jinyou, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack