Performance Profiling

Total processing time: 98 ms; Peak memory: 2.579 MB. Show Profiling Timeline

总计22条数据
TimeDurationCategoryInfo
  
13:49:34.85513.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=30002) AND ("object_id"=40)
13:49:34.81911.2 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_ledger_tickets' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
13:49:34.8135.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_ledger_tickets' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
13:49:34.8523.0 msyii\db\Command::querySELECT "id", "id" AS "key", "title", "title" AS "name" FROM "a57be577deb434"."tbl_ledger_cash_items" WHERE "id"=2
13:49:34.8811.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, 6, 'ledger/ticket/list', '{"access_token":"fm5QrMzndTK8qE2wxJ4UQJeJaYto4p5c","ledger_id":"1","page":"1","pageSize":"20","LedgerTicketSearch":{"ticket_date_from":"2026-07","ticket_date_to":"2026-07"},"web_access_token":"fm5QrMzndTK8qE2wxJ4UQJeJaYto4p5c"}', '{"code":2000,"result":{"list":[{"id":40,"ledger_id":1,"ticket_word":3,"serial_no":1,"ticket_count":0,"ticket_date":"2026-07-31","type":1,"status":1,"is_settle":false,"settle_month":"","settle_caption_id":"","created_by":1001,"created_at":"2026-07-02 11:29:12","updated_at":"2026-07-02 11:29:12","booked_by":1001,"ledger":{"id":1,"verify_name":"","bookkeeper_name":"","cashier_name":""},"items":[{"id":101,"ledger_ticket_id":40,"summary":"\u9500\u552e\u53d1\u7968 44","ledger_account_caption_id":11,"auxiliary_item_id":"","ledger_cash_item_id":"","debit_amount":"88221.00","credit_amount":"0.00","sort":1,"created_at":"2026-07-02 11:29:12","updated_at":"2026-07-02 11:29:12","accountCaption":{"key":11,"name":"\u5e94\u6536\u8d26\u6b3e","serial_no":"1122","title":"\u5e94\u6536\u8d26\u6b3e","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":{},"cashItem":{"key":2,"name":"\u9500\u552e\u5546\u54c1\u3001\u63d0\u4f9b\u52b3\u52a1\u6536\u5230\u7684\u73b0\u91d1","title":"\u9500\u552e\u5546\u54c1\u3001\u63d0\u4f9b\u52b3\u52a1\u6536\u5230\u7684\u73b0\u91d1"}},{"id":102,"ledger_ticket_id":40,"summary":"\u9500\u552e\u53d1\u7968 44","ledger_account_caption_id":117,"auxiliary_item_id":"","ledger_cash_item_id":"","debit_amount":"0.00","credit_amount":"88221.00","sort":2,"created_at":"2026-07-02 11:29:12","updated_at":"2026-07-02 11:29:12","accountCaption":{"key":117,"name":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","serial_no":"5001","title":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":{},"cashItem":{"key":2,"name":"\u9500\u552e\u5546\u54c1\u3001\u63d0\u4f9b\u52b3\u52a1\u6536\u5230\u7684\u73b0\u91d1","title":"\u9500\u552e\u5546\u54c1\u3001\u63d0\u4f9b\u52b3\u52a1\u6536\u5230\u7684\u73b0\u91d1"}}],"files":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"bookedBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"ticket_word_display":"\u8f6c","type_display":"\u666e\u901a\u51ed\u8bc1","status_display":"\u5df2\u8bb0\u8d26","serial_no_display":"001","ticket_no_display":"\u8f6c-001","settle_month_display":"","settle_caption_title":"","verify_status_display":"\u5ba1\u6838\u901a\u8fc7","verify_name_display":"- -","verify_display":"\u5ba1\u6838\u901a\u8fc7 - -","cashier_name_display":"","can_update":true,"can_delete":true,"is_settle_display":"\u672a\u7ed3\u7b97","attachment_count":0,"debit_total":88221,"credit_total":88221}],"can_create":true,"pagenation":{"totalcount":1,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"114.244.130.20","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-06 13:49:34', 82775808) RETURNING "id"
13:49:34.8741.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4
13:49:34.8431.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledger_tickets" "t" WHERE ("t"."ledger_id"='1') AND ("t"."ticket_date" >= '2026-07-01') AND ("t"."ticket_date" <= '2026-07-31') GROUP BY "t"."id" ORDER BY "t"."ticket_date", "t"."ticket_word", "t"."serial_no", "t"."id" LIMIT 20
13:49:34.8421.0 msyii\db\Command::querySELECT COUNT(*) FROM (SELECT * FROM "a57be577deb434"."tbl_ledger_tickets" "t" WHERE ("t"."ledger_id"='1') AND ("t"."ticket_date" >= '2026-07-01') AND ("t"."ticket_date" <= '2026-07-31') GROUP BY "t"."id") "c"
13:49:34.8020.9 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
13:49:34.8050.9 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "ledger_access_token"='fm5QrMzndTK8qE2wxJ4UQJeJaYto4p5c'
13:49:34.8480.7 msyii\db\Command::querySELECT "id", "id" AS "key", "serial_no", "title", "title" AS "name", "actual_amount", "is_auxiliary_customer", "is_auxiliary_supplier", "is_cash_equivalent", "ledger_cash_in_item_id", "ledger_cash_out_item_id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id" IN (11, 117)
13:49:34.8730.7 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)
13:49:34.8470.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledger_ticket_items" WHERE "ledger_ticket_id"=40 ORDER BY "sort", "id"
13:49:34.8020.7 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
13:49:34.8070.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
13:49:34.8690.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
13:49:34.8460.4 msyii\db\Command::querySELECT "id", "verify_name", "bookkeeper_name", "cashier_name" FROM "a57be577deb434"."tbl_ledgers" WHERE "id"=1
13:49:34.8080.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"='1'
13:49:34.8760.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)
13:49:34.8750.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
13:49:34.8550.3 msyii\db\Command::querySELECT "id", "id" AS "key", "title", "title" AS "name" FROM "a57be577deb434"."tbl_ledger_cash_items" WHERE "id"=2
13:49:34.8760.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4