Performance Profiling

Total processing time: 133 ms; Peak memory: 4.228 MB. Show Profiling Timeline

总计26条数据
TimeDurationCategoryInfo
  
16:30:01.70935.0 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=11) AND ("object_id"=723) GROUP BY "object_id"
16:30:01.74425.9 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=11) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=723) GROUP BY "object_id"
16:30:01.7007.6 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_term_taxonomy_relationships' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
16:30:01.6936.9 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_term_taxonomy_relationships' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
16:30:01.7744.5 msyii\db\Command::querySELECT "id", "accessible_user" AS "key", "document_id", "accessible_user" FROM "a57be577deb434"."tbl_visible_documents" WHERE (accessible_user is not null) AND ("document_id"=723)
16:30:01.6894.0 msyii\db\Command::querySELECT "pt".*, "taxonomy_id" AS "key", "tt"."name" AS "name" FROM "a57be577deb434"."tbl_term_taxonomy_relationships" "pt" LEFT JOIN "a57be577deb434"."tbl_term_taxonomies" "tt" ON taxonomy_id = tt.id WHERE ("pt"."term_id"=7) AND ("pt"."object_id"=723)
16:30:01.6653.9 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='QrTYdFtQRb8xnK0W-Vcdo4XMMih3SGxv'
16:30:01.6623.2 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
16:30:01.6753.1 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_documents" WHERE "id"='723'
16:30:01.6702.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
16:30:01.7711.8 msyii\db\Command::querySELECT "id", "user_id", "user_id" AS "key", "document_id" FROM "a57be577deb434"."tbl_document_remind_receivers" WHERE "document_id"=723
16:30:01.6851.7 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=27708
16:30:01.7871.6 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, 0, 267, 'v2/document/get-edit', '{"access_token":"QrTYdFtQRb8xnK0W-Vcdo4XMMih3SGxv","device_type":"0","version_code":"267","id":"723","token":"bb5b64308f5a796bb0eb1d93fbb4c0fc","posttime":"1758270600"}', '{"code":200,"data":{"model":{"id":723,"attachment_id":27708,"is_template":false,"created_by":1011,"title":"\u66f9\u6c38\u751f-\u5458\u5de5\u52b3\u52a8\u5408\u540c","description":"","created_at":"2025-08-21 13:59:38","updated_at":"2025-08-21 13:59:38","department_id":8,"document_type_id":123,"expire_from":"2025-04-01","expire_to":"2028-03-31","is_reminded":false,"alarm_before":"720:00:00","is_all":false,"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"attachment":{"id":27708,"key":27708,"name":"5f6ca59e-7f6e-3ba9-aa2f-abfdf5c19dfb","extension":"pdf","path":"\/v2\/attachment\/preview\/QrTYdFtQRb8xnK0W-Vcdo4XMMih3SGxv\/5f6ca59e-7f6e-3ba9-aa2f-abfdf5c19dfb\/\u66f9\u6c38\u751f.pdf","orig_name":"\u66f9\u6c38\u751f.pdf","download":"\/vue\/attachment\/download?name=5f6ca59e-7f6e-3ba9-aa2f-abfdf5c19dfb"},"department":{"id":8,"key":8,"name":"\u4eba\u529b\u8d44\u6e90"},"documentType":"\u52b3\u52a8\u5408\u540c","documentTypeTag":{"id":128842,"object_id":723,"taxonomy_id":305,"term_id":7,"value":null,"object_type":null,"extra_int":null,"in_amount":null,"out_amount":null,"key":305,"name":"\u5408\u540c\uff06\u534f\u8bae"},"commentCount":{"object_id":723,"comment":2},"unreadComments":null,"documentRemindReceivers":[{"id":511,"user_id":1011,"key":1011,"document_id":723,"user":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}}},{"id":512,"user_id":5446,"key":5446,"document_id":723,"user":{"id":5446,"key":5446,"name":"\u5218\u5a1f","sex":"F","avatar":{"id":164,"user_id":5446,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5631bbfb-fa6e-308e-b87c-b159e8042209.jpg"}}}],"visibleDocumentUsers":[{"id":34715,"key":1001,"document_id":723,"accessible_user":1001,"accessibleUser":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},{"id":34716,"key":1011,"document_id":723,"accessible_user":1011,"accessibleUser":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"},"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}}},{"id":34717,"key":5446,"document_id":723,"accessible_user":5446,"accessibleUser":{"id":5446,"key":5446,"name":"\u5218\u5a1f","sex":"F","department_id":8,"department":{"id":8,"key":8,"name":"\u4eba\u529b\u8d44\u6e90"},"avatar":{"id":164,"user_id":5446,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5631bbfb-fa6e-308e-b87c-b159e8042209.jpg"}}},{"id":34718,"key":1000,"document_id":723,"accessible_user":1000,"accessibleUser":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"},"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"}}}],"visibleDocumentDepartments":[{"id":34713,"key":4,"document_id":723,"accessible_department":4,"accessibleDepartment":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},{"id":34714,"key":8,"document_id":723,"accessible_department":8,"accessibleDepartment":{"id":8,"key":8,"name":"\u4eba\u529b\u8d44\u6e90"}}],"canVisible":[{"id":34718,"document_id":723,"accessible_department":null,"accessible_user":1000}],"expire_display":"","unread":0,"alarm_before_display":"\u63d0\u524d30\u5929","can_update":true,"can_delete":true,"bgcolor":"#89c541"},"options":[]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-09-19 16:30:01') RETURNING "id"
16:30:01.7801.5 msyii\db\Command::querySELECT "id", "accessible_department" AS "key", "document_id", "accessible_department" FROM "a57be577deb434"."tbl_visible_documents" WHERE (accessible_department is not null) AND ("document_id"=723)
16:30:01.6871.5 msyii\db\Command::querySELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_document_types" WHERE "id"=123
16:30:01.7821.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_visible_documents" WHERE ("accessible_user"=1000) AND ("document_id"=723)
16:30:01.7780.9 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 1011, 5446, 1000)
16:30:01.6840.5 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1011)
16:30:01.6830.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011
16:30:01.6840.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=3
16:30:01.7730.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1011, 5446)
16:30:01.7730.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 (1011, 5446))
16:30:01.7800.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 (1011, 1001, 5446, 1000))
16:30:01.6870.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=8
16:30:01.7790.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id" IN (3, 4, 8, 10)
16:30:01.7820.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id" IN (4, 8)