简体   繁体   中英

Query Taking time to execute

I have a query that fetches data from two tables but it takes too much time to fetch data. The browser loads and shows nothing as a result. When I run this query in the MySQL database, it takes a long time to execute.

SELECT 
    * 
FROM 
    library_new_item AS library 
    LEFT JOIN library_items_barcode AS boorcode ON library.lib_item_id=boorcode.lib_items_id 
ORDER BY 
    library.lib_item_id ASC 
LIMIT 100

Unless you post your DB structure, or share the Explain output or the error message, it'd be impossible for us to answer. But if you want us to take a shot in the dark, this could possibly be the issue:

on library.lib_ item_id = boorcode.lib_ items_id

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM