Performance Profiling

Total processing time: 99 ms; Peak memory: 4.908 MB. Show Profiling Timeline

总计17条数据
TimeDurationCategoryInfo
  
17:09:06.33733.1 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=6002) GROUP BY "object_id"
17:09:06.31520.3 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id"=6002) GROUP BY "object_id"
17:09:06.3769.7 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', 1000, 6, 166, 'v2/contact/of-client', '{"id":"3334","page":"1","posttime":"1751879346","access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"6","version_code":"166","token":"879225476d5ecd5d8e456404d852a3b4"}', '{"code":200,"data":{"list":[{"id":6002,"name":"\u67f3\u98de","email":"","pinyin_shortcut":"lf","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":3334,"supplier_id":null,"created_by":1011,"created_at":"2025-02-28 17:49:07","updated_at":"2025-02-28 17:49:07","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"liu","pinyin2":"fei","pinyin3":null,"pinyin4":null,"namecut1":"\u67f3","namecut2":"\u98de","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":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F"},"keyRoles":[],"mobiles":[{"id":6786,"contact_id":6002,"mobile":"13331106031","mp_open_id":null,"mobile_display":"13331106031"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":true,"name_display":"\u67f3\u98de","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-07 17:09:06') RETURNING "id"
17:09:06.3054.2 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"='3334' 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:09:06.2934.2 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd'
17:09:06.3092.4 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"='3334' 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:09:06.2912.3 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:09:06.2991.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
17:09:06.3021.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3334') AND ("deleted"=FALSE)
17:09:06.3360.6 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (2, 184, 189, 349)) ORDER BY "sort"
17:09:06.3140.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6002
17:09:06.3350.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6002
17:09:06.3120.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2
17:09:06.3130.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id"=6002 ORDER BY "key_role"
17:09:06.3370.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (2, 184, 189, 349)) ORDER BY "sort"
17:09:06.3130.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011
17:09:06.3360.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6002