SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001993s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.061653s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002553s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '18.97.9.174' ) [ RunTime:0.074733s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001216s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.038011s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 104 [ RunTime:0.075709s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 104 LIMIT 1 [ RunTime:0.019425s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002923s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '104' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.169494s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.003737s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17172 LIMIT 5 [ RunTime:0.047101s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002791s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17172 ORDER BY `minOrder` ASC [ RunTime:0.073610s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.036434s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 17172 ORDER BY `unit` DESC [ RunTime:0.110146s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002070s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 17172 LIMIT 2 [ RunTime:0.169269s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17172 ORDER BY `minOrder` ASC [ RunTime:0.015811s ]
select * from pdf where partno='TPS2061CDBVR' and brandshort='TI' limit 1 [ RunTime:0.103921s ]
select foldpath,foldpath2,filename from pdf_file where id=1060293 limit 1 [ RunTime:0.061069s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001227s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TPS2061CDBVR' OR `brand` LIKE 'TI%' ) ) LIMIT 1 [ RunTime:0.195499s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17164 LIMIT 5 [ RunTime:0.081404s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17164 ORDER BY `minOrder` ASC [ RunTime:0.081287s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 17164 ORDER BY `unit` DESC [ RunTime:0.142115s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 17164 LIMIT 2 [ RunTime:0.106541s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17164 ORDER BY `minOrder` ASC [ RunTime:0.090011s ]
select * from pdf where partno='TPS61291DRVR' and brandshort='TI' limit 1 [ RunTime:0.223412s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TPS61291DRVR' OR `brand` LIKE 'TI%' ) ) LIMIT 1 [ RunTime:0.147859s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14990 LIMIT 5 [ RunTime:0.160936s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14990 ORDER BY `minOrder` ASC [ RunTime:0.041749s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14990 ORDER BY `unit` DESC [ RunTime:0.049884s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14990 LIMIT 2 [ RunTime:0.000494s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14990 ORDER BY `minOrder` ASC [ RunTime:0.043820s ]
select * from pdf where partno='82V3391BEQG' and brandshort='IDT' limit 1 [ RunTime:0.050384s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '82V3391BEQG' OR `brand` LIKE 'IDT%' ) ) LIMIT 1 [ RunTime:0.043855s ]
SELECT `id` FROM `stock` WHERE `id` <> 14990 AND `partno` = '82V3391BEQG' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%idt%' ) [ RunTime:0.044722s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7231 LIMIT 5 [ RunTime:0.065320s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7231 ORDER BY `minOrder` ASC [ RunTime:0.106225s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7231 ORDER BY `unit` DESC [ RunTime:0.148516s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7231 LIMIT 2 [ RunTime:0.095754s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7231 ORDER BY `minOrder` ASC [ RunTime:0.000523s ]
select * from pdf where partno='74AHCT573PW,118' and brandshort='NEXPERIA' limit 1 [ RunTime:0.062508s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '74AHCT573PW,118' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.115338s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11491 LIMIT 5 [ RunTime:0.145601s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11491 ORDER BY `minOrder` ASC [ RunTime:0.071634s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11491 ORDER BY `unit` DESC [ RunTime:0.125893s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11491 LIMIT 2 [ RunTime:0.210938s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11491 ORDER BY `minOrder` ASC [ RunTime:0.032593s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AH3772-P-B' OR `brand` LIKE 'DIODES INC.%' ) ) LIMIT 1 [ RunTime:0.060893s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '104' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.057493s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '104' ) LIMIT 5 ) tmp GROUP BY `brand` [ RunTime:0.115117s ]