- mysql> show full processlist;
- +-------+----------------------+---------------------+-----------+---------+------+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Id | User | Host | db | Command | Time | State | Info |
- +-------+----------------------+---------------------+-----------+---------+------+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | 92189 | ag_user | 186.67.142.99:56966 | NULL | Sleep | 5344 | | NULL |
- | 92191 | ag_user | 186.67.142.99:56968 | ag_portal | Sleep | 2785 | | NULL |
- | 93867 | ag_user | 186.67.142.99:58115 | ag_portal | Sleep | 3841 | | NULL |
- | 94260 | ag_user | 186.67.142.99:58647 | ag_portal | Sleep | 3516 | | NULL |
- | 94628 | ag_user | 186.67.142.99:58872 | ag_portal | Sleep | 3257 | | NULL |
- | 95195 | ag_user | 186.67.142.99:59223 | ag_portal | Sleep | 2785 | | NULL |
- | 98532 | ag_user | localhost | ag_portal | Sleep | 28 | | NULL |
- | 98561 | ag_user | localhost | ag_portal | Query | 1 | Waiting for table level lock | UPDATE ag_product SET viewed = (viewed + 1) WHERE product_id = '4734' |
- | 98563 | ag_user | localhost | ag_portal | Query | 2 | Sending data | SELECT * FROM ag_category c
- LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
- LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
- WHERE c.parent_id in (1502,1510,1519,1521,1641,1526,1530,1535,1539,1544,1552,1554,1557,1565,1569,1571,1574,1575,1576,1577,1578,1579,1583,1584,1585,1586,1587,1589,1590,1592,1594,1595,1597,1598,1600,1601,1602) AND c.origin_SAP = 'FILTRO'
- AND
- (
- select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
- and
- (
- select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
- and ptc2.product_id = 3635
- and
- (
- select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2
- ) > 0
- ) > 0
- ) > 0
- AND cd.language_id = '1'
- AND c2s.store_id = '0'
- AND c.status = '1'
- ORDER BY c.sort_order, LCASE(cd.name) |
- | 98564 | ag_user | localhost | ag_portal | Sleep | 2 | | NULL |
- | 98565 | root | localhost | NULL | Query | 0 | NULL | show full processlist |
- | 98566 | ag_user | localhost | ag_portal | Query | 1 | Waiting for table level lock | SELECT p.product_id, p.price, (SELECT AVG(rating) AS total FROM ag_review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating, p.division FROM ag_product p LEFT JOIN ag_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN ag_product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN ag_product_to_category p2c ON (p.product_id = p2c.product_id) WHERE pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND ( p2c.category_id = '1183' ) AND p.price > 0 GROUP BY p.product_id ORDER BY p.price ASC, LCASE(pd.name) ASC LIMIT 0,100 |
- | 98567 | ag_user | localhost | ag_portal | Query | 1 | Sending data | SELECT * FROM ag_category c
- LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
- LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
- WHERE c.parent_id in (1502,1510,1519,1521,1641,1526,1530,1535,1539,1544,1552,1554,1557,1565,1569,1571,1574,1575,1576,1577,1578,1579,1583,1584,1585,1586,1587,1589,1590,1592,1594,1595,1597,1598,1600,1601,1602) AND c.origin_SAP = 'FILTRO'
- AND
- (
- select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
- and
- (
- select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
- and ptc2.product_id = 2113
- and
- (
- select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2
- ) > 0
- ) > 0
- ) > 0
- AND cd.language_id = '1'
- AND c2s.store_id = '0'
- AND c.status = '1'
- ORDER BY c.sort_order, LCASE(cd.name) |
- | 98568 | ag_user | localhost | ag_portal | Query | 1 | Waiting for table level lock | SELECT min(p.price) as min_price FROM ag_product p
- WHERE p.manufacturer_id = 45
- AND p.price <> 0 |
- | 98569 | unauthenticated user | localhost | NULL | Connect | NULL | Reading from net | NULL |
- +-------+----------------------+---------------------+-----------+---------+------+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- 15 rows in set (0.00 sec)
Untitled
Posted by NotLim on Wed 8th Jan 2014 16:19
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
hn.kpaste.net RSS