SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.002038s ]
INSERT INTO `visit_log` SET `ip` = '216.73.217.46' , `useragent` = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' , `reffer` = '' , `host` = 'https://www.ic118.com/stock&status=4&typeid=20' [ RunTime:0.012051s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001554s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.007717s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002545s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.46' ) [ RunTime:0.039323s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002496s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.019782s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 20 [ RunTime:0.037014s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002829s ]
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`.`status` = '4' AND `s`.`status` <> '2' AND `s`.`categoryid` IN ('102','103','104','105','106','107','108','109','110','111','112','113','114','115') ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.007776s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001801s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15978 LIMIT 4 [ RunTime:0.025047s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002027s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15978 ORDER BY `minOrder` ASC [ RunTime:0.030960s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.033763s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15978 ORDER BY `unit` DESC [ RunTime:0.084326s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002502s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15978 LIMIT 2 [ RunTime:0.004889s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15978 ORDER BY `minOrder` ASC [ RunTime:0.007242s ]
select * from pdf where partno='74HC4538DB,118' and brandshort='NEXPERIA' limit 1 [ RunTime:0.047593s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002275s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '74HC4538DB,118' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.012687s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15806 LIMIT 4 [ RunTime:0.024124s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15806 ORDER BY `minOrder` ASC [ RunTime:0.049782s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15806 ORDER BY `unit` DESC [ RunTime:0.023191s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15806 LIMIT 2 [ RunTime:0.023192s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15806 ORDER BY `minOrder` ASC [ RunTime:0.014518s ]
select * from pdf where partno='MC74HC595ADTR2G' and brandshort='ONSEMI' limit 1 [ RunTime:0.019583s ]
select foldpath,foldpath2,filename from pdf_file where id=1135691 limit 1 [ RunTime:0.010022s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MC74HC595ADTR2G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.022526s ]
SELECT `id` FROM `stock` WHERE `id` <> 15806 AND `partno` = 'MC74HC595ADTR2G' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%onsemi%' ) [ RunTime:0.018589s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2848 [ RunTime:0.018913s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16825 [ RunTime:0.001605s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16101557 [ RunTime:0.006788s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15740 LIMIT 4 [ RunTime:0.012163s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15740 ORDER BY `minOrder` ASC [ RunTime:0.005219s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15740 ORDER BY `unit` DESC [ RunTime:0.007790s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15740 LIMIT 2 [ RunTime:0.001211s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15740 ORDER BY `minOrder` ASC [ RunTime:0.000578s ]
select * from pdf where partno='MC74HC74ADR2G' and brandshort='ONSEMI' limit 1 [ RunTime:0.007016s ]
select foldpath,foldpath2,filename from pdf_file where id=532743 limit 1 [ RunTime:0.008084s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MC74HC74ADR2G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.012048s ]
SELECT `id` FROM `stock` WHERE `id` <> 15740 AND `partno` = 'MC74HC74ADR2G' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%onsemi%' ) [ RunTime:0.013781s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8249 [ RunTime:0.008853s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16759 [ RunTime:0.008372s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17104774 [ RunTime:0.004560s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15531 LIMIT 4 [ RunTime:0.003207s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15531 ORDER BY `minOrder` ASC [ RunTime:0.008644s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15531 ORDER BY `unit` DESC [ RunTime:0.016891s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15531 LIMIT 2 [ RunTime:0.002701s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15531 ORDER BY `minOrder` ASC [ RunTime:0.003981s ]
select * from pdf where partno='MM74HC595MTCX' and brandshort='ONSEMI' limit 1 [ RunTime:0.005872s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MM74HC595MTCX' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.015371s ]
SELECT `id` FROM `stock` WHERE `id` <> 15531 AND `partno` = 'MM74HC595MTCX' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%onsemi%' ) [ RunTime:0.001829s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7391 [ RunTime:0.004868s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16551 [ RunTime:0.001050s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 19198441 [ RunTime:0.004997s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15249 LIMIT 4 [ RunTime:0.000798s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15249 ORDER BY `minOrder` ASC [ RunTime:0.021219s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15249 ORDER BY `unit` DESC [ RunTime:0.004625s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15249 LIMIT 2 [ RunTime:0.000503s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15249 ORDER BY `minOrder` ASC [ RunTime:0.000243s ]
select * from pdf where partno='74HC14PW,118' and brandshort='NEXPERIA' limit 1 [ RunTime:0.004501s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '74HC14PW,118' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.012752s ]
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`.`status` = '4' AND `s`.`status` <> '2' AND `s`.`categoryid` IN ('102','103','104','105','106','107','108','109','110','111','112','113','114','115') ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.010832s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`status` = '4' AND `s`.`status` <> '2' AND `s`.`categoryid` IN ('102','103','104','105','106','107','108','109','110','111','112','113','114','115') ) LIMIT 5 ) tmp GROUP BY `brand` [ RunTime:0.014774s ]