Performance Profiling

Total processing time: 62 ms; Peak memory: 5.050 MB. Show Profiling Timeline

总计17条数据
TimeDurationCategoryInfo
  
18:33:05.10915.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_purchase_contract_invoices' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
18:33:05.1269.6 msyii\db\Command::querySELECT COUNT(*) FROM (SELECT pci.* FROM "a57be577deb434"."tbl_purchase_contract_invoices" "pci" LEFT JOIN "a57be577deb434"."tbl_purchase_contracts" "pc" ON pc.id = pci.contract_id LEFT JOIN "a57be577deb434"."tbl_purchase_invoice_products" "pcpp" ON pci.id = pcpp.purchase_invoice_id LEFT JOIN "a57be577deb434"."tbl_suppliers" "s" ON pci.supplier_id = s.id LEFT JOIN "a57be577deb434"."tbl_purchase_invoice_projects" "pip" ON pci.id = pip.purchase_invoice_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = pip.project_id LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id WHERE (pci.cover_invoice_id is null) AND ("contract_id"=4025) AND (("pci"."invoice_type" != '-1') OR (pci.invoice_type is null)) AND ("pci"."is_cancel"=FALSE) GROUP BY "pci"."id") "c"
18:33:05.1035.5 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_purchase_contract_invoices' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
18:33:05.1443.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=5016) AND ("object_type"=13) AND ("visit_date"='2025-08-11')
18:33:05.0932.2 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=5016
18:33:05.1362.0 msyii\db\Command::querySELECT pci.* FROM "a57be577deb434"."tbl_purchase_contract_invoices" "pci" LEFT JOIN "a57be577deb434"."tbl_purchase_contracts" "pc" ON pc.id = pci.contract_id LEFT JOIN "a57be577deb434"."tbl_purchase_invoice_products" "pcpp" ON pci.id = pcpp.purchase_invoice_id LEFT JOIN "a57be577deb434"."tbl_suppliers" "s" ON pci.supplier_id = s.id LEFT JOIN "a57be577deb434"."tbl_purchase_invoice_projects" "pip" ON pci.id = pip.purchase_invoice_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = pip.project_id LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id WHERE (pci.cover_invoice_id is null) AND ("contract_id"=4025) AND (("pci"."invoice_type" != '-1') OR (pci.invoice_type is null)) AND ("pci"."is_cancel"=FALSE) GROUP BY "pci"."id" LIMIT 20
18:33:05.0911.9 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
18:33:05.0971.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5016
18:33:05.1401.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=21) AND ("object_id"=2355)
18:33:05.1421.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=103) AND ("object_id"=2355)
18:33:05.1491.1 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5016, 5, 'vue/purchase-contract/list-invoice', '{"contract_id":"4025","page":"1","web_access_token":"POegKS4EpeWp9q2F-96BFFHj5EMI_RkV"}', '{"code":2000,"result":{"list":[{"id":2355,"contract_id":4025,"amount":"30000","attachment_id":"","from_date":"2025-07-11","created_by":1011,"created_at":"2025-07-11 15:31:11","description":"","invoice_num":"25112000000144626931","invoice_type":1,"handler":1011,"is_verify":false,"is_cancel":false,"paid_amount":"30000","tax_amount":"1698.11","excluding_tax":"28301.89","verify_at":"","is_used":false,"updated_at":"2025-07-11 15:31:55","cancel_description":"","cover_invoice_id":"","red_invoice_id":"","new_invoice_id":"","need_new_invoice":false,"is_draft":false,"is_settle":false,"supplier_id":627,"is_contract_cancel":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":{"path":"\/vue\/attachment\/preview\/\/"},"attachmentRelationships":[],"files":[{"id":35657,"object_type":103,"object_id":2355,"attachment_id":26783,"attachment":{"id":26783,"key":26783,"name":"797fff75-cd03-388f-9445-dda219b63cbc","extension":"pdf","path":"\/vue\/attachment\/view\/797fff75-cd03-388f-9445-dda219b63cbc\/\u5f8b\u5e08\u4ee3\u7406\u8d39\u53d1\u7968.pdf","orig_name":"\u5f8b\u5e08\u4ee3\u7406\u8d39\u53d1\u7968.pdf"}}],"can_update":true}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-11 18:33:05') RETURNING "id"
18:33:05.1480.8 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=5, "last_visit_at"='now()' WHERE "id"=55033
18:33:05.1000.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='4025'
18:33:05.1390.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)
18:33:05.1430.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=26783
18:33:05.1400.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=3
18:33:05.1390.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011