基本
文件
流程
错误
SQL
调试
- 请求信息 : 2024-11-10 09:43:55 HTTP/1.1 GET : youthra.cn/ask/group/dddddd.html?type=user
- 运行时间 : 0.044827s [ 吞吐率:22.31req/s ] 内存消耗:5,110.34kb 文件加载:158
- 查询信息 : 17 queries 0 writes
- 缓存信息 : 1 reads,1 writes
- 配置加载 : 74
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000014s ]
- [ CACHE ] INIT File
- [ BEHAVIOR ] Run \addons\xunsearch\Xunsearch @app_init [ RunTime:0.001993s ]
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002018s ]
- [ LANG ] /www/wwwroot/www.youthra.cn/thinkphp/lang/zh-cn.php
- [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000167s ]
- [ ROUTE ] array (
'type' => 'method',
'method' =>
array (
0 => '\\think\\addons\\Route',
1 => 'execute',
),
'var' =>
array (
'addon' => 'ask',
'controller' => 'group',
'action' => 'show',
),
)
- [ HEADER ] array (
'host' => 'youthra.cn',
'accept-encoding' => 'gzip, br, zstd, deflate',
'user-agent' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'accept' => '*/*',
'content-type' => '',
'content-length' => '',
)
- [ PARAM ] array (
'type' => 'user',
'name' => 'dddddd',
)
- [ RUN ] think\addons\Route->execute[ /www/wwwroot/www.youthra.cn/vendor/karsonzhang/fastadmin-addons/src/addons/Route.php ]
- [ LANG ] /www/wwwroot/www.youthra.cn/public/../application/common/lang/zh-cn/addon.php
- [ BEHAVIOR ] Run app\common\behavior\Common @addon_begin [ RunTime:0.001033s ]
- [ LANG ] /www/wwwroot/www.youthra.cn/addons/ask/lang/zh-cn.php
- [ DB ] INIT mysql
- [ VIEW ] /www/wwwroot/www.youthra.cn/addons/ask/view/group/show.html [ array (
0 => 'config',
1 => 'user',
2 => 'site',
3 => 'isAdmin',
4 => 'askConfig',
5 => 'topZoneList',
6 => 'userContributeList',
7 => 'group_admin_userList',
8 => 'groupType',
9 => '__group__',
10 => '__groupTag__',
11 => 'title',
) ]
- [ BEHAVIOR ] Run \addons\ask\Ask @view_filter [ RunTime:0.000094s ]
- [ DB ] CONNECT:[ UseTime:0.000357s ] mysql:host=127.0.0.1;port=3306;dbname=www_youthra_cn;charset=utf8mb4
- [ SQL ] SHOW COLUMNS FROM `fa_ask_group` [ RunTime:0.000628s ]
- [ SQL ] SELECT * FROM `fa_ask_group` WHERE `name` = 'dddddd' LIMIT 1 [ RunTime:0.000211s ]
- [ SQL ] SHOW COLUMNS FROM `fa_ask_question` [ RunTime:0.000605s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `fa_ask_question` INNER JOIN `fa_ask_group_content_map` `pivot` ON `pivot`.`source_id`=`fa_ask_question`.`id` WHERE ( `pivot`.`type` = 'question' AND `pivot`.`group_id` = 28 ) AND `fa_ask_question`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000360s ]
- [ SQL ] SHOW COLUMNS FROM `fa_ask_article` [ RunTime:0.000597s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `fa_ask_article` INNER JOIN `fa_ask_group_content_map` `pivot` ON `pivot`.`source_id`=`fa_ask_article`.`id` WHERE ( `pivot`.`type` = 'article' AND `pivot`.`group_id` = 28 ) AND `fa_ask_article`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000158s ]
- [ SQL ] SHOW COLUMNS FROM `fa_ask_group_activity` [ RunTime:0.000463s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `fa_ask_group_activity` WHERE `group_id` = 28 LIMIT 1 [ RunTime:0.000133s ]
- [ SQL ] SHOW COLUMNS FROM `fa_ask_user` [ RunTime:0.000469s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `fa_ask_user` INNER JOIN `fa_ask_group_admin_map` `pivot` ON `pivot`.`user_id`=`fa_ask_user`.`user_id` WHERE `pivot`.`user_id` IS NULL AND `pivot`.`group_id` = 28 LIMIT 1 [ RunTime:0.000233s ]
- [ SQL ] SHOW COLUMNS FROM `fa_ask_attention` [ RunTime:0.000493s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM ( SELECT count(*) FROM `fa_ask_attention` `a` LEFT JOIN `fa_ask_group_content_map` `m` ON `a`.`source_id`=`m`.`group_id` LEFT JOIN (SELECT user_id, COUNT(*) AS count FROM fa_ask_group_content_map t GROUP BY user_id) t ON `a`.`user_id`=`t`.`user_id` LEFT JOIN `fa_user` `u` ON `u`.`id`=`a`.`user_id` LEFT JOIN (SELECT source_id FROM fa_ask_attention WHERE user_id = 1 AND type = 'user') n ON `a`.`user_id`=`n`.`source_id` WHERE `a`.`type` = 'group' AND `a`.`source_id` = 28 GROUP BY a.user_id, a.source_id ) `_group_count_` LIMIT 1 [ RunTime:0.000202s ]
- [ SQL ] SELECT a.user_id, a.source_id, NVL(t.count,0) as count, u.username,u.nickname,u.avatar, NVL2(n.source_id, 1, 0) followed FROM `fa_ask_attention` `a` LEFT JOIN `fa_ask_group_content_map` `m` ON `a`.`source_id`=`m`.`group_id` LEFT JOIN (SELECT user_id, COUNT(*) AS count FROM fa_ask_group_content_map t GROUP BY user_id) t ON `a`.`user_id`=`t`.`user_id` LEFT JOIN `fa_user` `u` ON `u`.`id`=`a`.`user_id` LEFT JOIN (SELECT source_id FROM fa_ask_attention WHERE user_id = 1 AND type = 'user') n ON `a`.`user_id`=`n`.`source_id` WHERE `a`.`type` = 'group' AND `a`.`source_id` = 28 GROUP BY a.user_id, a.source_id ORDER BY `count` DESC LIMIT 0,100 [ RunTime:0.000198s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `fa_ask_group` `t` LEFT JOIN `fa_ask_tag` `tag` ON `t`.`task_tag_id`=`tag`.`id` LEFT JOIN `fa_ask_tag` `tag2` ON `t`.`method_tag_id`=`tag2`.`id` WHERE ( 1=1 ) AND `t`.`name` = 'dddddd' LIMIT 1 [ RunTime:0.000146s ]
- [ SQL ] SELECT `t`.*,tag.name task_tag_name,tag2.name method_tag_name FROM `fa_ask_group` `t` LEFT JOIN `fa_ask_tag` `tag` ON `t`.`task_tag_id`=`tag`.`id` LEFT JOIN `fa_ask_tag` `tag2` ON `t`.`method_tag_id`=`tag2`.`id` WHERE ( 1=1 ) AND `t`.`name` = 'dddddd' LIMIT 0,100 [ RunTime:0.000147s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `fa_ask_group` `t` LEFT JOIN `fa_ask_group_admin_map` `a` ON `t`.`id`=`a`.`group_id` LEFT JOIN `fa_user` `u` ON `u`.`id`=`a`.`user_id` WHERE ( 1=1 ) AND `t`.`name` = 'dddddd' LIMIT 1 [ RunTime:0.000116s ]
- [ SQL ] SELECT `t`.*,`u`.`username`,`u`.`nickname`,`u`.`avatar`,`a`.`user_id` FROM `fa_ask_group` `t` LEFT JOIN `fa_ask_group_admin_map` `a` ON `t`.`id`=`a`.`group_id` LEFT JOIN `fa_user` `u` ON `u`.`id`=`a`.`user_id` WHERE ( 1=1 ) AND `t`.`name` = 'dddddd' LIMIT 0,100 [ RunTime:0.000150s ]
0.049701s