SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002307s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.003676s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002560s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '18.97.14.85' ) [ RunTime:0.000399s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001114s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000308s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 32 [ RunTime:0.000398s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001232s ]
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` IN ('318','319','320','321','322','323','324','325','326','327','328','329','330','331','332','333','334','335','336','337','338','339','340') ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.002204s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001085s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3826 LIMIT 5 [ RunTime:0.000352s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001022s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3826 ORDER BY `minOrder` ASC [ RunTime:0.000616s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001351s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3826 ORDER BY `unit` DESC [ RunTime:0.000486s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000852s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3826 LIMIT 2 [ RunTime:0.000455s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3826 ORDER BY `minOrder` ASC [ RunTime:0.000275s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.000851s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AS179-92LF' OR `brand` LIKE 'SKYWORKS SOLUTIONS%' ) ) LIMIT 1 [ RunTime:0.000656s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14950 LIMIT 5 [ RunTime:0.000226s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14950 ORDER BY `minOrder` ASC [ RunTime:0.000309s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14950 ORDER BY `unit` DESC [ RunTime:0.000255s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14950 LIMIT 2 [ RunTime:0.000238s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14950 ORDER BY `minOrder` ASC [ RunTime:0.000239s ]
select * from pdf where partno='ADG1434YCPZ-REEL7' and brandshort='ADI' limit 1 [ RunTime:0.001526s ]
select foldpath,foldpath2,filename from pdf_file where id=515914 limit 1 [ RunTime:0.001214s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ADG1434YCPZ-REEL7' OR `brand` LIKE 'ADI%' ) ) LIMIT 1 [ RunTime:0.026203s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16694 LIMIT 5 [ RunTime:0.000258s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16694 ORDER BY `minOrder` ASC [ RunTime:0.000624s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16694 ORDER BY `unit` DESC [ RunTime:0.000484s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16694 LIMIT 2 [ RunTime:0.000424s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16694 ORDER BY `minOrder` ASC [ RunTime:0.000238s ]
select * from pdf where partno='BGS14PN10E6327XTSA1' and brandshort='INFINEON' limit 1 [ RunTime:0.000897s ]
select foldpath,foldpath2,filename from pdf_file where id=1306793 limit 1 [ RunTime:0.000331s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BGS14PN10E6327XTSA1' OR `brand` LIKE 'INFINEON%' ) ) LIMIT 1 [ RunTime:0.006716s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16458 LIMIT 5 [ RunTime:0.000268s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16458 ORDER BY `minOrder` ASC [ RunTime:0.000585s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16458 ORDER BY `unit` DESC [ RunTime:0.000306s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16458 LIMIT 2 [ RunTime:0.000419s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16458 ORDER BY `minOrder` ASC [ RunTime:0.000324s ]
select * from pdf where partno='AS179-92LF' and brandshort='SKYWORKS SOLUTIONS' limit 1 [ RunTime:0.001075s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AS179-92LF' OR `brand` LIKE 'SKYWORKS SOLUTIONS%' ) ) LIMIT 1 [ RunTime:0.000362s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15675 LIMIT 5 [ RunTime:0.000250s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15675 ORDER BY `minOrder` ASC [ RunTime:0.000664s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15675 ORDER BY `unit` DESC [ RunTime:0.000409s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15675 LIMIT 2 [ RunTime:0.000374s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15675 ORDER BY `minOrder` ASC [ RunTime:0.000284s ]
select * from pdf where partno='BGS14PN10E6327XTSA1' and brandshort='INFINEON' limit 1 [ RunTime:0.000462s ]
select foldpath,foldpath2,filename from pdf_file where id=1306793 limit 1 [ RunTime:0.000259s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BGS14PN10E6327XTSA1' OR `brand` LIKE 'INFINEON%' ) ) LIMIT 1 [ RunTime:0.005485s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15438 LIMIT 5 [ RunTime:0.000299s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15438 ORDER BY `minOrder` ASC [ RunTime:0.000664s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15438 ORDER BY `unit` DESC [ RunTime:0.000272s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15438 LIMIT 2 [ RunTime:0.000364s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15438 ORDER BY `minOrder` ASC [ RunTime:0.000319s ]
select * from pdf where partno='AS179-92LF' and brandshort='SKYWORKS SOLUTIONS' limit 1 [ RunTime:0.000477s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AS179-92LF' OR `brand` LIKE 'SKYWORKS SOLUTIONS%' ) ) LIMIT 1 [ RunTime:0.000353s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10343 LIMIT 5 [ RunTime:0.000246s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10343 ORDER BY `minOrder` ASC [ RunTime:0.000606s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10343 ORDER BY `unit` DESC [ RunTime:0.000496s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10343 LIMIT 2 [ RunTime:0.000375s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10343 ORDER BY `minOrder` ASC [ RunTime:0.000276s ]
select * from pdf where partno='BGS14PN10E6327XTSA1' and brandshort='INFINEON' limit 1 [ RunTime:0.000463s ]
select foldpath,foldpath2,filename from pdf_file where id=1306793 limit 1 [ RunTime:0.000258s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BGS14PN10E6327XTSA1' OR `brand` LIKE 'INFINEON%' ) ) LIMIT 1 [ RunTime:0.005168s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11190 LIMIT 5 [ RunTime:0.000216s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11190 ORDER BY `minOrder` ASC [ RunTime:0.000576s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11190 ORDER BY `unit` DESC [ RunTime:0.000448s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11190 LIMIT 2 [ RunTime:0.000414s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11190 ORDER BY `minOrder` ASC [ RunTime:0.000260s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'F2914NBGK8' OR `brand` LIKE 'RENESAS%' ) ) LIMIT 1 [ RunTime:0.005572s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13217 LIMIT 5 [ RunTime:0.000210s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13217 ORDER BY `minOrder` ASC [ RunTime:0.000542s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13217 ORDER BY `unit` DESC [ RunTime:0.000422s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13217 LIMIT 2 [ RunTime:0.000411s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13217 ORDER BY `minOrder` ASC [ RunTime:0.000273s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HMC199AMS8E' OR `brand` LIKE 'ANALOG DEVICES%' ) ) LIMIT 1 [ RunTime:0.000642s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13218 LIMIT 5 [ RunTime:0.000253s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13218 ORDER BY `minOrder` ASC [ RunTime:0.000280s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13218 ORDER BY `unit` DESC [ RunTime:0.000240s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13218 LIMIT 2 [ RunTime:0.000204s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13218 ORDER BY `minOrder` ASC [ RunTime:0.000233s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HMC7992LP3DETR' OR `brand` LIKE 'ANALOG DEVICES%' ) ) LIMIT 1 [ RunTime:0.000611s ]
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` IN ('318','319','320','321','322','323','324','325','326','327','328','329','330','331','332','333','334','335','336','337','338','339','340') ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000846s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` IN ('318','319','320','321','322','323','324','325','326','327','328','329','330','331','332','333','334','335','336','337','338','339','340') ) LIMIT 10 ) tmp GROUP BY `brand` [ RunTime:0.001018s ]