Performance Profiling

Total processing time: 92 ms; Peak memory: 4.924 MB. Show Profiling Timeline

总计17条数据
TimeDurationCategoryInfo
  
17:27:49.57023.5 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id" IN (6014, 5245)) GROUP BY "object_id"
17:27:49.60519.2 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1004 AND is_read = false) AND ("object_id" IN (6014, 5245)) GROUP BY "object_id"
17:27:49.5454.1 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc'
17:27:49.5593.7 msyii\db\Command::querySELECT COUNT(*) FROM (SELECT c.*, CASE WHEN count(cm.id) != 0 THEN 1 ELSE null END as mp_open_id FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "client"."id"='2815' GROUP BY "c"."id" ORDER BY (case c.user_status when 3 then 1 when 1 then 0 else c.user_status end) DESC, c.updated_at DESC) "c"
17:27:49.5973.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (5, 226, 215, 134, 139, 184, 189, 349, 1, 2, 197, 199, 377)) ORDER BY "sort"
17:27:49.5632.8 msyii\db\Command::querySELECT c.*, CASE WHEN count(cm.id) != 0 THEN 1 ELSE null END as mp_open_id FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id AND cm.mp_open_id IS NOT NULL WHERE "client"."id"='2815' GROUP BY "c"."id" ORDER BY (case c.user_status when 3 then 1 when 1 then 0 else c.user_status end) DESC, c.updated_at DESC LIMIT 10
17:27:49.5432.5 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:27:49.6281.8 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1004, 2, 1141, 'v2/contact/of-client', '{"access_token":"NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc","device_type":"2","id":"2815","page":"1","posttime":"1752398848","token":"61571b0b6b305e7b1a78eb7f7b566dcb","version_code":"1141"}', '{"code":200,"data":{"list":[{"id":6014,"name":"\u51e4\u59d0","email":"","pinyin_shortcut":"fj","sex":"F","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":2815,"supplier_id":null,"created_by":1000,"created_at":"2025-07-11 16:27:58","updated_at":"2025-07-11 16:27:58","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"feng","pinyin2":"jie","pinyin3":null,"pinyin4":null,"namecut1":"\u51e4","namecut2":"\u59d0","namecut3":null,"namecut4":null,"is_mp_bind":false,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c","created_by":1000,"created_at":"2016-10-31 21:28:36","updated_at":"2016-10-31 21:28:40"},"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M"},"keyRoles":[],"mobiles":[{"id":6798,"contact_id":6014,"mobile":"13078945632","mp_open_id":null,"mobile_display":"13078945632"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":false,"name_display":"\u51e4\u59d0","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":5245,"name":"\u674e\u4fca","email":"123@123.com","pinyin_shortcut":"lj","sex":"M","birth_date":null,"department":"\u9500\u552e","job_position":"\u7ecf\u7406","mobile":"","telephone":"66554488","client_id":2815,"supplier_id":null,"created_by":5364,"created_at":"2024-03-20 19:50:20","updated_at":"2025-07-10 11:02:58","user_status":2,"description":"\u8303\u5fb7\u8428\u8303\u5fb7\u8428","contact_type":"1","contact_attitude":null,"telephone_area_code":"010","telephone_extension_number":"88","mp_open_id":null,"pinyin1":"li","pinyin2":"jun","pinyin3":null,"pinyin4":null,"namecut1":"\u674e","namecut2":"\u4fca","namecut3":null,"namecut4":null,"is_mp_bind":false,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c","created_by":1000,"created_at":"2016-10-31 21:28:36","updated_at":"2016-10-31 21:28:40"},"createdBy":{"id":5364,"key":5364,"name":"\u738b\u827a\u742e","sex":"F"},"keyRoles":[],"mobiles":[{"id":6034,"contact_id":5245,"mobile":"18101123631","mp_open_id":null,"mobile_display":"18101123631"}],"commentCount":null,"contactKeyRoles":[{"id":134,"key":134,"name":"\u8d22\u52a1\u51b3\u7b56\u4eba"}],"contactAttitude":{"id":139,"key":139,"name":"\u652f\u6301"},"unreadComments":null,"can_update":true,"can_delete":false,"name_display":"\u674e\u4fca","email_display":"123@123.com","telephone_display":"010-66554488-88","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"}],"pagenation":{"totalcount":2,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-13 17:27:49') RETURNING "id"
17:27:49.6021.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (6014, 5245)
17:27:49.5511.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004
17:27:49.5951.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (6014, 5245)
17:27:49.5561.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='2815') AND ("deleted"=FALSE)
17:27:49.5690.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (6014, 5245)
17:27:49.5670.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2
17:27:49.5680.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id" IN (6014, 5245) ORDER BY "key_role"
17:27:49.5670.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1000, 5364)
17:27:49.6040.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (5, 226, 215, 134, 139, 184, 189, 349, 1, 2, 197, 199, 377)) ORDER BY "sort"