Total processing time: 43 ms; Peak memory: 4.779 MB. Show Profiling Timeline
Time | Duration | Category | Info |
---|---|---|---|
17:04:19.509 | 12.0 ms | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT s.*, CASE WHEN is_complete = true then 3 WHEN is_complete = false and end_at <= NOW() then 2 else 1 END AS sort FROM "a57be577deb434"."tbl_schedules" "s" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.created_by LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON c.id = s.client_id LEFT JOIN "a57be577deb434"."tbl_schedule_carbon_copy_rels" "ccr" ON ccr.schedule_id = s.id WHERE (1=1) AND (("s"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1017, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5296, 5300, 5311, 5329, 5332, 5360, 5388, 5404, 5420, 5440, 5445, 5446)) OR ("ccr"."user_id"=1000)) AND ((lower(c.name) LIKE '%娜娜%') OR ("c"."pinyin_shortcut" LIKE '%娜娜%') OR (lower(s.schedule_title) LIKE '%娜娜%') OR (lower(s.description) LIKE '%娜娜%') OR (lower(s.complete_description) LIKE '%娜娜%')) AND ("u"."department_id"='10') AND ("s"."created_by"='1000') AND ((("s"."is_public"=1) AND ("s"."created_by" != 1000)) OR ("s"."created_by"=1000) OR ("ccr"."user_id"=1000)) GROUP BY "s"."id" ORDER BY set_top_at DESC nulls last, sort ASC, case when s.is_complete = true then complete_at END desc, case when s.is_complete = false then end_at END asc, s.created_at DESC) "c" |
17:04:19.493 | 4.0 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
17:04:19.504 | 3.6 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id" |
17:04:19.490 | 2.8 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:04:19.521 | 2.8 ms | yii\db\Command::query | SELECT s.*, CASE WHEN is_complete = true then 3 WHEN is_complete = false and end_at <= NOW() then 2 else 1 END AS sort FROM "a57be577deb434"."tbl_schedules" "s" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON u.id = s.created_by LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON c.id = s.client_id LEFT JOIN "a57be577deb434"."tbl_schedule_carbon_copy_rels" "ccr" ON ccr.schedule_id = s.id WHERE (1=1) AND (("s"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1017, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5296, 5300, 5311, 5329, 5332, 5360, 5388, 5404, 5420, 5440, 5445, 5446)) OR ("ccr"."user_id"=1000)) AND ((lower(c.name) LIKE '%娜娜%') OR ("c"."pinyin_shortcut" LIKE '%娜娜%') OR (lower(s.schedule_title) LIKE '%娜娜%') OR (lower(s.description) LIKE '%娜娜%') OR (lower(s.complete_description) LIKE '%娜娜%')) AND ("u"."department_id"='10') AND ("s"."created_by"='1000') AND ((("s"."is_public"=1) AND ("s"."created_by" != 1000)) OR ("s"."created_by"=1000) OR ("ccr"."user_id"=1000)) GROUP BY "s"."id" ORDER BY set_top_at DESC nulls last, sort ASC, case when s.is_complete = true then complete_at END desc, case when s.is_complete = false then end_at END asc, s.created_at DESC LIMIT 10 |
17:04:19.498 | 1.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:04:19.527 | 1.5 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 2, 1141, 'v2/schedule/list', '{"ScheduleSearch":{"created_by":"1000","department_id":"10","keyword":"\u5a1c\u5a1c","status":""},"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1751101440","token":"64a3df842a363110a9b8bccb1b4a5c87","version_code":"1141"}', '{"code":200,"data":{"list":[],"thisUser":{"id":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}},"pagenation":{"totalcount":0,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-06-28 17:04:19') RETURNING "id" |
17:04:19.524 | 0.8 ms | yii\db\Command::query | SELECT "id", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"='1000' |
17:04:19.526 | 0.5 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000) |