基本
文件
流程
错误
SQL
调试
- 请求信息 : 2026-11-23 19:26:30 HTTP/1.1 GET : https://www.aichacha.net/brand.html
- 运行时间 : 1.501726s [ 吞吐率:0.67req/s ] 内存消耗:726.22kb 文件加载:157
- 查询信息 : 0 queries
- 缓存信息 : 0 reads,0 writes
- 会话信息 : SESSION_ID=87880522e049df02b2b596c0f3c0a4a7
- CONNECT:[ UseTime:0.012587s ] mysql:host=localhost;port=3306;dbname=shangxun;charset=utf8mb4
- SELECT 1 [ RunTime:0.000167s ]
- SHOW FULL COLUMNS FROM `xin_quotation` [ RunTime:0.001111s ]
- SHOW FULL COLUMNS FROM `xin_company` [ RunTime:0.000881s ]
- SHOW FULL COLUMNS FROM `xin_sort` [ RunTime:0.000699s ]
- SELECT * FROM `xin_sort` WHERE `pid` = 0 ORDER BY `orderby` ASC [ RunTime:0.000253s ]
- SELECT
s.id AS sort_id,
p.id AS brand_id,
p.title AS brand_title
FROM
xin_sort s
JOIN (
SELECT
c3.id AS sort_id,
b.id,
b.title,
MAX(q.create_time) AS latest_create_date, MAX(q.update_time) AS latest_update_date,
ROW_NUMBER ( ) OVER ( PARTITION BY c3.id ORDER BY b.create_time DESC ) AS rn
FROM
xin_brand b
JOIN xin_sort c1 ON B.sort_id = c1.id
JOIN xin_sort c2 ON c1.pid = c2.id
JOIN xin_sort c3 ON c2.pid = c3.id
JOIN xin_quotation q ON q.brand_name = b.title
GROUP BY b.title
) p ON s.id = p.sort_id
WHERE
p.rn <= 36
ORDER BY p.latest_update_date DESC, p.latest_create_date DESC [ RunTime:1.410538s ]

1.504526s