Performance Profiling

Total processing time: 250 ms; Peak memory: 5.269 MB. Show Profiling Timeline

总计18条数据
TimeDurationCategoryInfo
  
12:36:30.17143.4 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=14) AND ("object_id" IN (5976, 5975, 5835, 4829, 4586, 4100, 3904)) GROUP BY "object_id"
12:36:30.21727.2 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=14) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id" IN (5976, 5975, 5835, 4829, 4586, 4100, 3904)) GROUP BY "object_id"
12:36:30.10224.8 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_contacts' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
12:36:30.12824.0 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_contacts' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
12:36:30.07215.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"='2128' 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"
12:36:30.0907.5 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"='2128' 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 20
12:36:30.0444.9 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
12:36:30.0604.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='2128') AND ("deleted"=FALSE)
12:36:30.0264.4 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
12:36:30.1653.3 msyii\db\Command::querySELECT "id", "id" AS "key", "status" AS "name" FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2
12:36:30.0242.1 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
12:36:30.2491.9 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/contact/of-client', '{"id":"2128","page":"1","web_access_token":"-ooNs73DKJQ01PCpcbuHx_usnaO5SdwJ"}', '{"code":2000,"result":{"list":[{"id":5976,"name":"\u5f20\u667a\u666e","email":"","pinyin_shortcut":"zzp","sex":"M","birth_date":"","department":"","job_position":"","mobile":"","telephone":"","client_id":2128,"supplier_id":"","created_by":5087,"created_at":"2024-12-30 12:51:20","updated_at":"2024-12-30 12:51:20","user_status":2,"description":"","contact_type":"1","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"zhang","pinyin2":"zhi","pinyin3":"pu","pinyin4":"","namecut1":"\u5f20","namecut2":"\u667a","namecut3":"\u666e","namecut4":"","is_mp_bind":false,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","user_status":"1"},"mobiles":[{"id":6764,"contact_id":5976,"mobile":"13611367526","mp_open_id":"","mobile_display":"13611367526"}],"commentCount":{},"contactKeyRoles":[],"contactAttitude":{"id":139,"key":139,"name":"\u652f\u6301"},"unreadComments":"","can_update":true,"can_delete":true,"name_display":"\u5f20\u667a\u666e","email_display":"","telephone_display":"","unread":0},{"id":5975,"name":"\u738b\u745b","email":"","pinyin_shortcut":"wy","sex":"F","birth_date":"","department":"","job_position":"","mobile":"","telephone":"","client_id":2128,"supplier_id":"","created_by":5087,"created_at":"2024-12-30 12:42:02","updated_at":"2024-12-30 12:42:02","user_status":2,"description":"","contact_type":"1","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"wang","pinyin2":"ying","pinyin3":"","pinyin4":"","namecut1":"\u738b","namecut2":"\u745b","namecut3":"","namecut4":"","is_mp_bind":false,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","user_status":"1"},"mobiles":[{"id":6763,"contact_id":5975,"mobile":"13910272351","mp_open_id":"","mobile_display":"13910272351"}],"commentCount":{},"contactKeyRoles":[{"id":138,"key":138,"name":"Coach"}],"contactAttitude":{"id":139,"key":139,"name":"\u652f\u6301"},"unreadComments":"","can_update":true,"can_delete":true,"name_display":"\u738b\u745b","email_display":"","telephone_display":"","unread":0},{"id":5835,"name":"\u674e\u5965","email":"","pinyin_shortcut":"la","sex":"M","birth_date":"","department":"","job_position":"","mobile":"","telephone":"","client_id":2128,"supplier_id":"","created_by":5087,"created_at":"2024-07-24 17:57:43","updated_at":"2024-07-24 17:57:43","user_status":2,"description":"","contact_type":"1","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":1,"pinyin1":"li","pinyin2":"ao","pinyin3":"","pinyin4":"","namecut1":"\u674e","namecut2":"\u5965","namecut3":"","namecut4":"","is_mp_bind":true,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","user_status":"1"},"mobiles":[{"id":6628,"contact_id":5835,"mobile":"15611040178","mp_open_id":"oagch6ftRot5zf0OI7cNmofZzqwc","mobile_display":"15611040178"}],"commentCount":{},"contactKeyRoles":[],"contactAttitude":{"id":140,"key":140,"name":"\u4e2d\u7acb"},"unreadComments":"","can_update":true,"can_delete":true,"name_display":"\u674e\u5965","email_display":"","telephone_display":"","unread":0},{"id":4829,"name":"\u4efb\u52c7\u6797","email":"","pinyin_shortcut":"ryl","sex":"M","birth_date":"","department":"","job_position":"","mobile":"","telephone":"","client_id":2128,"supplier_id":"","created_by":5087,"created_at":"2023-09-21 15:03:25","updated_at":"2023-09-21 15:03:25","user_status":2,"description":"","contact_type":"1","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"ren","pinyin2":"yong","pinyin3":"lin","pinyin4":"","namecut1":"\u4efb","namecut2":"\u52c7","namecut3":"\u6797","namecut4":"","is_mp_bind":false,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","user_status":"1"},"mobiles":[{"id":5624,"contact_id":4829,"mobile":"18501342809","mp_open_id":"","mobile_display":"18501342809"}],"commentCount":{},"contactKeyRoles":[],"contactAttitude":{},"unreadComments":"","can_update":true,"can_delete":true,"name_display":"\u4efb\u52c7\u6797","email_display":"","telephone_display":"","unread":0},{"id":4586,"name":"\u80e1\u6c49","email":"","pinyin_shortcut":"hh","sex":"M","birth_date":"","department":"","job_position":"","mobile":"","telephone":"","client_id":2128,"supplier_id":"","created_by":5087,"created_at":"2023-04-19 11:33:39","updated_at":"2023-04-19 11:33:39","user_status":2,"description":"","contact_type":"1","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"hu","pinyin2":"han","pinyin3":"","pinyin4":"","namecut1":"\u80e1","namecut2":"\u6c49","namecut3":"","namecut4":"","is_mp_bind":false,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","user_status":"1"},"mobiles":[{"id":5396,"contact_id":4586,"mobile":"13371628199","mp_open_id":"","mobile_display":"13371628199"}],"commentCount":{},"contactKeyRoles":[],"contactAttitude":{},"unreadComments":"","can_update":true,"can_delete":true,"name_display":"\u80e1\u6c49","email_display":"","telephone_display":"","unread":0},{"id":4100,"name":"\u6768\u5929\u9038","email":"","pinyin_shortcut":"yty","sex":"M","birth_date":"","department":"","job_position":"","mobile":"","telephone":"","client_id":2128,"supplier_id":"","created_by":1011,"created_at":"2022-08-17 17:44:26","updated_at":"2022-08-17 17:44:26","user_status":2,"description":"","contact_type":"1","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":"","pinyin1":"yang","pinyin2":"tian","pinyin3":"yi","pinyin4":"","namecut1":"\u6768","namecut2":"\u5929","namecut3":"\u9038","namecut4":"","is_mp_bind":false,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","user_status":"1"},"mobiles":[{"id":4922,"contact_id":4100,"mobile":"13601366951","mp_open_id":"","mobile_display":"13601366951"}],"commentCount":{},"contactKeyRoles":[],"contactAttitude":{},"unreadComments":"","can_update":true,"can_delete":true,"name_display":"\u6768\u5929\u9038","email_display":"","telephone_display":"","unread":0},{"id":3904,"name":"\u738b\u6d77\u6d9b","email":"","pinyin_shortcut":"wht","sex":"M","birth_date":"","department":"","job_position":"","mobile":"","telephone":"","client_id":2128,"supplier_id":"","created_by":5087,"created_at":"2022-03-01 21:21:41","updated_at":"2022-03-04 17:08:50","user_status":2,"description":"","contact_type":"1","contact_attitude":"","telephone_area_code":"","telephone_extension_number":"","mp_open_id":1,"pinyin1":"wang","pinyin2":"hai","pinyin3":"tao","pinyin4":"","namecut1":"\u738b","namecut2":"\u6d77","namecut3":"\u6d9b","namecut4":"","is_mp_bind":true,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","user_status":"1"},"mobiles":[{"id":4722,"contact_id":3904,"mobile":"13911355557","mp_open_id":"oagch6dDBuq_SmumFXebOclM-Ri8","mobile_display":"13911355557"}],"commentCount":{},"contactKeyRoles":[],"contactAttitude":{},"unreadComments":"","can_update":true,"can_delete":true,"name_display":"\u738b\u6d77\u6d9b","email_display":"","telephone_display":"","unread":0}],"can_create":true,"pagenation":{"totalcount":7,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-04 12:36:30', 235797760) RETURNING "id"
12:36:30.1700.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (5976, 5975, 5835, 4829, 4586, 4100, 3904)
12:36:30.2140.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5976, 5975, 5835, 4829, 4586, 4100, 3904)
12:36:30.2160.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (5976, 5975, 5835, 4829, 4586, 4100, 3904)
12:36:30.1690.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "user_status" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5087, 1011)
12:36:30.2150.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (184, 189, 226, 1, 2, 5, 165, 172, 349, 340, 377, 369, 164, 142, 139, 138, 140)) ORDER BY "sort"
12:36:30.2170.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (184, 189, 226, 1, 2, 5, 165, 172, 349, 340, 377, 369, 164, 142, 139, 138, 140)) ORDER BY "sort"