- mysql> show full processlist;
- +-------+---------+---------------------+-----------+---------+------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Id | User | Host | db | Command | Time | State | Info |
- +-------+---------+---------------------+-----------+---------+------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
- | 92189 | ag_user | 186.67.142.99:56966 | NULL | Sleep | 5380 | | NULL |
- | 92191 | ag_user | 186.67.142.99:56968 | ag_portal | Sleep | 2821 | | NULL |
- | 93867 | ag_user | 186.67.142.99:58115 | ag_portal | Sleep | 3877 | | NULL |
- | 94260 | ag_user | 186.67.142.99:58647 | ag_portal | Sleep | 3552 | | NULL |
- | 94628 | ag_user | 186.67.142.99:58872 | ag_portal | Sleep | 3293 | | NULL |
- | 95195 | ag_user | 186.67.142.99:59223 | ag_portal | Sleep | 2821 | | NULL |
- | 98565 | root | localhost | NULL | Query | 0 | NULL | show full processlist |
- | 98607 | ag_user | localhost | ag_portal | Sleep | 0 | | NULL |
- | 98609 | 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 = '275'
- AND
- (
- select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
- and
- (
- SELECT COUNT(*) FROM ag_product p WHERE p.manufacturer_id = 45
- AND p.product_id = ptc1.product_id AND p.status = '1'
- ) > 0
- ) > 0
- AND cd.language_id = '1'
- AND c2s.store_id = '0'
- AND c.status = '1'
- ORDER BY c.sort_order, LCASE(cd.name) |
- | 98610 | ag_user | localhost | ag_portal | Query | 0 | 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,1'
- 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.category_id = 1400
- and
- (
- select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2 AND p.price BETWEEN 162900 AND 359900
- ) > 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) |
- | 98611 | ag_user | localhost | ag_portal | Sleep | 3 | | NULL |
- | 98612 | ag_user | localhost | ag_portal | Sleep | 2 | | NULL |
- | 98613 | ag_user | localhost | ag_portal | Sleep | 0 | | NULL |
- +-------+---------+---------------------+-----------+---------+------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
- 13 rows in set (0.00 sec)
- mysql>
Untitled
Posted by NotLim on Wed 8th Jan 2014 16:20
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