Performance Profiling

Total processing time: 88 ms; Peak memory: 4.923 MB. Show Profiling Timeline

总计17条数据
TimeDurationCategoryInfo
  
17:27:48.97729.3 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 (5870, 5869)) GROUP BY "object_id"
17:27:48.95222.1 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id" IN (5870, 5869)) GROUP BY "object_id"
17:27:48.9323.9 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc'
17:27:48.9283.6 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:27:48.9433.6 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"='3302' 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:48.9462.7 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"='3302' 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.0101.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', 1004, 2, 1141, 'v2/contact/of-client', '{"access_token":"NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc","device_type":"2","id":"3302","page":"1","posttime":"1752398848","token":"cbe5f46bd2ede806803b308bfd71ebd9","version_code":"1141"}', '{"code":200,"data":{"list":[{"id":5870,"name":"\u5218\u604b","email":"","pinyin_shortcut":"ll","sex":"M","birth_date":null,"department":"\u5546\u52a1\u90e8","job_position":"\u91c7\u8d2d","mobile":"","telephone":"","client_id":3302,"supplier_id":null,"created_by":1011,"created_at":"2024-09-10 11:04:12","updated_at":"2024-09-10 11:04:12","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"liu","pinyin2":"lian","pinyin3":null,"pinyin4":null,"namecut1":"\u5218","namecut2":"\u604b","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":6661,"contact_id":5870,"mobile":"18987241111","mp_open_id":null,"mobile_display":"18987241111"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":false,"name_display":"\u5218\u604b","telephone_display":"","unread":0,"bind_status":0,"bind_status_display":"\u672a\u8ba4\u8bc1"},{"id":5869,"name":"\u9648\u79c0\u519b","email":"","pinyin_shortcut":"cxj","sex":"M","birth_date":null,"department":"\u9500\u552e\u90e8","job_position":"\u5ba2\u6237\u7ecf\u7406","mobile":"","telephone":"","client_id":3302,"supplier_id":null,"created_by":1011,"created_at":"2024-09-10 11:03:43","updated_at":"2024-09-10 11:03:43","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"chen","pinyin2":"xiu","pinyin3":"jun","pinyin4":null,"namecut1":"\u9648","namecut2":"\u79c0","namecut3":"\u519b","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":6660,"contact_id":5869,"mobile":"17780730121","mp_open_id":null,"mobile_display":"17780730121"}],"commentCount":null,"contactKeyRoles":[],"contactAttitude":null,"unreadComments":null,"can_update":true,"can_delete":false,"name_display":"\u9648\u79c0\u519b","telephone_display":"","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:48.9371.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004
17:27:48.9401.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3302') AND ("deleted"=FALSE)
17:27:48.9520.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (5870, 5869)
17:27:48.9760.7 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (5, 184, 189, 349, 1, 183, 367)) ORDER BY "sort"
17:27:48.9750.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5870, 5869)
17:27:48.9510.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_key_roles" WHERE "contact_id" IN (5870, 5869) ORDER BY "key_role"
17:27:48.9500.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2
17:27:48.9770.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (5, 184, 189, 349, 1, 183, 367)) ORDER BY "sort"
17:27:48.9500.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011
17:27:48.9770.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5870, 5869)