SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002248s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000500s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001668s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '18.97.9.169' ) [ RunTime:0.000271s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001111s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000247s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 104 [ RunTime:0.000311s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 104 LIMIT 1 [ RunTime:0.000200s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001264s ]
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.004715s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001176s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17172 LIMIT 5 [ RunTime:0.000403s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001571s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17172 ORDER BY `minOrder` ASC [ RunTime:0.000708s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.006991s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 17172 ORDER BY `unit` DESC [ RunTime:0.006527s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000945s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 17172 LIMIT 2 [ RunTime:0.000572s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17172 ORDER BY `minOrder` ASC [ RunTime:0.000217s ]
select * from pdf where partno='TPS2061CDBVR' and brandshort='TI' limit 1 [ RunTime:0.001302s ]
select foldpath,foldpath2,filename from pdf_file where id=1060293 limit 1 [ RunTime:0.001815s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001174s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TPS2061CDBVR' OR `brand` LIKE 'TI%' ) ) LIMIT 1 [ RunTime:0.041619s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17164 LIMIT 5 [ RunTime:0.000535s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17164 ORDER BY `minOrder` ASC [ RunTime:0.004676s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 17164 ORDER BY `unit` DESC [ RunTime:0.003934s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 17164 LIMIT 2 [ RunTime:0.000321s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17164 ORDER BY `minOrder` ASC [ RunTime:0.000184s ]
select * from pdf where partno='TPS61291DRVR' and brandshort='TI' limit 1 [ RunTime:0.001416s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TPS61291DRVR' OR `brand` LIKE 'TI%' ) ) LIMIT 1 [ RunTime:0.026332s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14990 LIMIT 5 [ RunTime:0.004803s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14990 ORDER BY `minOrder` ASC [ RunTime:0.002670s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14990 ORDER BY `unit` DESC [ RunTime:0.011323s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14990 LIMIT 2 [ RunTime:0.013414s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14990 ORDER BY `minOrder` ASC [ RunTime:0.000543s ]
select * from pdf where partno='82V3391BEQG' and brandshort='IDT' limit 1 [ RunTime:0.006022s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '82V3391BEQG' OR `brand` LIKE 'IDT%' ) ) LIMIT 1 [ RunTime:0.015044s ]
SELECT `id` FROM `stock` WHERE `id` <> 14990 AND `partno` = '82V3391BEQG' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%idt%' ) [ RunTime:0.002174s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7231 LIMIT 5 [ RunTime:0.000520s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7231 ORDER BY `minOrder` ASC [ RunTime:0.012601s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7231 ORDER BY `unit` DESC [ RunTime:0.008764s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7231 LIMIT 2 [ RunTime:0.002320s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7231 ORDER BY `minOrder` ASC [ RunTime:0.000482s ]
select * from pdf where partno='74AHCT573PW,118' and brandshort='NEXPERIA' limit 1 [ RunTime:0.013609s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '74AHCT573PW,118' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.007178s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11491 LIMIT 5 [ RunTime:0.000499s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11491 ORDER BY `minOrder` ASC [ RunTime:0.001238s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11491 ORDER BY `unit` DESC [ RunTime:0.001614s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11491 LIMIT 2 [ RunTime:0.006461s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11491 ORDER BY `minOrder` ASC [ RunTime:0.000878s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AH3772-P-B' OR `brand` LIKE 'DIODES INC.%' ) ) LIMIT 1 [ RunTime:0.001704s ]
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.000805s ]
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.000800s ]