Performance Profiling

Total processing time: 126 ms; Peak memory: 4.952 MB. Show Profiling Timeline

总计15条数据
TimeDurationCategoryInfo
  
14:10:57.33737.6 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1000, 2, 1161, 'v2/client/list-document', '{"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"2","id":"520","page":"1","posttime":"1784182272","token":"d305eacd6f8e324fb661337534da4e3a","version_code":"1161"}', '{"code":200,"data":{"list":[{"id":146,"attachment_id":9981,"client_id":520,"title":"\u62d3\u5b9e\u6295\u6807\u6587\u4ef6-\u6280\u672f\u6807(\u5f90\u7855).docx","description":"","created_by":1022,"created_at":"2022-04-15 17:47:54","updated_at":"2022-04-15 17:47:54","project_id":null,"case_id":null,"createdBy":{"id":1022,"key":1022,"name":"\u5f90\u7855","sex":"M","avatar":{"id":6,"user_id":1022,"name":"\/files\/cdn\/a57be577deb434\/avatar\/2b5ec94d-d83c-38b4-ac3a-38720c369f91.png"}},"attachment":{"id":9981,"key":9981,"name":"d8ad155e-acbd-3480-8499-c8561b053f80","extension":"docx","path":"\/v2\/attachment\/preview\/wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm\/d8ad155e-acbd-3480-8499-c8561b053f80\/\u62d3\u5b9e\u6295\u6807\u6587\u4ef6-\u6280\u672f\u6807(\u5f90\u7855).docx","orig_name":"\u62d3\u5b9e\u6295\u6807\u6587\u4ef6-\u6280\u672f\u6807(\u5f90\u7855).docx"},"commentCount":null,"unreadComments":null,"client":{"id":520,"key":520,"name":"\u5317\u4eac\u4f18\u80fd\u535a\u534e\u6295\u8d44\u7ba1\u7406\u6709\u9650\u516c\u53f8"},"project":null,"case":null,"unread":0},{"id":109,"attachment_id":9098,"client_id":520,"title":"\u5907\u4efd\u7cfb\u7edf\u4f18\u5316\u65b9\u6848.pptx","description":"","created_by":1015,"created_at":"2021-12-13 09:56:37","updated_at":"2021-12-13 09:56:37","project_id":null,"case_id":null,"createdBy":{"id":1015,"key":1015,"name":"\u5434\u660a","sex":"M","avatar":{"id":12,"user_id":1015,"name":"\/files\/cdn\/a57be577deb434\/avatar\/d69b398a-5951-36e9-a92e-992fe938db26.jpg"}},"attachment":{"id":9098,"key":9098,"name":"77c354e2-3700-3d72-924d-54dbed36f766","extension":"pptx","path":"\/v2\/attachment\/preview\/wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm\/77c354e2-3700-3d72-924d-54dbed36f766\/\u5907\u4efd\u7cfb\u7edf\u4f18\u5316\u65b9\u6848.pptx","orig_name":"\u5907\u4efd\u7cfb\u7edf\u4f18\u5316\u65b9\u6848.pptx"},"commentCount":null,"unreadComments":null,"client":{"id":520,"key":520,"name":"\u5317\u4eac\u4f18\u80fd\u535a\u534e\u6295\u8d44\u7ba1\u7406\u6709\u9650\u516c\u53f8"},"project":null,"case":null,"unread":0},{"id":108,"attachment_id":9097,"client_id":520,"title":"Backup system optimization plan.pptx","description":"","created_by":1015,"created_at":"2021-12-13 09:56:37","updated_at":"2021-12-13 09:56:37","project_id":null,"case_id":null,"createdBy":{"id":1015,"key":1015,"name":"\u5434\u660a","sex":"M","avatar":{"id":12,"user_id":1015,"name":"\/files\/cdn\/a57be577deb434\/avatar\/d69b398a-5951-36e9-a92e-992fe938db26.jpg"}},"attachment":{"id":9097,"key":9097,"name":"8b2707d2-a73c-31f3-870d-e9ffe345cc99","extension":"pptx","path":"\/v2\/attachment\/preview\/wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm\/8b2707d2-a73c-31f3-870d-e9ffe345cc99\/Backup system optimization plan.pptx","orig_name":"Backup system optimization plan.pptx"},"commentCount":null,"unreadComments":null,"client":{"id":520,"key":520,"name":"\u5317\u4eac\u4f18\u80fd\u535a\u534e\u6295\u8d44\u7ba1\u7406\u6709\u9650\u516c\u53f8"},"project":null,"case":null,"unread":0}],"pagenation":{"totalcount":3,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"223.104.40.7","ua":"jinchangxiao\/2.3.158 (iPhone 12; iOS 26.5.2; Scale\/3.00)"}', FALSE, '2026-07-16 14:10:57', 84590848) RETURNING "id"
14:10:57.28923.8 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=104) AND ("object_id" IN (146, 109, 108)) GROUP BY "object_id"
14:10:57.31321.6 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=104) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id" IN (146, 109, 108)) GROUP BY "object_id"
14:10:57.26914.3 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_client_documents' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
14:10:57.2643.7 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_client_documents' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
14:10:57.2630.9 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='520') AND ("deleted"=FALSE) AND (("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)))
14:10:57.2840.9 msyii\db\Command::querySELECT COUNT(*) FROM (SELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"='520' GROUP BY "cd"."id" ORDER BY "created_at" DESC) "c"
14:10:57.2550.7 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm'
14:10:57.2880.6 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (9981, 9098, 9097)
14:10:57.2860.5 msyii\db\Command::querySELECT cd.* FROM "a57be577deb434"."tbl_client_documents" "cd" WHERE "client_id"='520' GROUP BY "cd"."id" ORDER BY "created_at" DESC LIMIT 10
14:10:57.2570.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
14:10:57.3350.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=520
14:10:57.2870.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1022, 1015)
14:10:57.2880.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1022, 1015))
14:10:57.2550.3 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta