Total processing time: 80 ms; Peak memory: 3.131 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 14:53:49.952 | 36.7 ms | yii\db\Command::query | select 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_work_logs' and ns.nspname='o6a13e2c574d5a' order by fns.nspname, fc.relname, a.attnum |
| 14:53:49.994 | 8.7 ms | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT s.*, s.end_at - s.start_at AS hours_spent FROM "o6a13e2c574d5a"."tbl_work_logs" "s" LEFT JOIN "o6a13e2c574d5a"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "o6a13e2c574d5a"."tbl_location" "lin" ON s.location_in_id = lin.id LEFT JOIN "o6a13e2c574d5a"."tbl_location" "lout" ON s.location_out_id = lout.id LEFT JOIN "o6a13e2c574d5a"."tbl_projects" "p" ON "p"."id" = "s"."project_id" LEFT JOIN "o6a13e2c574d5a"."tbl_users" "u" ON "u"."id" = "s"."created_by" LEFT JOIN "o6a13e2c574d5a"."tbl_work_log_verify_rels" "rvr" ON rvr.work_log_id = s.id LEFT JOIN "o6a13e2c574d5a"."tbl_work_log_carbon_copy_rels" "ccr" ON ccr.work_log_id = s.id WHERE (("s"."created_by" IN (5493, 5495)) OR ("ccr"."user_id"=5495)) AND (("s"."created_by"='5495')) AND ("s"."is_draft"='0') GROUP BY "s"."id", "lin"."id", "lout"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, s.updated_at DESC nulls last, "s"."created_at" DESC) "c" |
| 14:53:49.947 | 4.5 ms | yii\db\Command::query | SELECT 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_work_logs' and d.nspname = 'o6a13e2c574d5a' ORDER BY a.attnum; |
| 14:53:50.003 | 2.1 ms | yii\db\Command::query | SELECT s.*, s.end_at - s.start_at AS hours_spent FROM "o6a13e2c574d5a"."tbl_work_logs" "s" LEFT JOIN "o6a13e2c574d5a"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "o6a13e2c574d5a"."tbl_location" "lin" ON s.location_in_id = lin.id LEFT JOIN "o6a13e2c574d5a"."tbl_location" "lout" ON s.location_out_id = lout.id LEFT JOIN "o6a13e2c574d5a"."tbl_projects" "p" ON "p"."id" = "s"."project_id" LEFT JOIN "o6a13e2c574d5a"."tbl_users" "u" ON "u"."id" = "s"."created_by" LEFT JOIN "o6a13e2c574d5a"."tbl_work_log_verify_rels" "rvr" ON rvr.work_log_id = s.id LEFT JOIN "o6a13e2c574d5a"."tbl_work_log_carbon_copy_rels" "ccr" ON ccr.work_log_id = s.id WHERE (("s"."created_by" IN (5493, 5495)) OR ("ccr"."user_id"=5495)) AND (("s"."created_by"='5495')) AND ("s"."is_draft"='0') GROUP BY "s"."id", "lin"."id", "lout"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, s.updated_at DESC nulls last, "s"."created_at" DESC LIMIT 20 |
| 14:53:49.934 | 1.1 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=5495 |
| 14:53:50.008 | 0.9 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'o6a13e2c574d5a', 5495, 5, 'vue/work-log/list', '{"WorkLogSearch":{"filterUser":["5495"],"has_client":"","has_project":"","status":"","is_arrive":"","description":"","period":"","filter":"","is_draft":"0"},"Filter":{"name":"end_at","sort":"DESC"},"page":"1","web_access_token":"BVNSh9YfxWIaBBEpqELLGqJuWOoESJvj"}', '{"code":2000,"result":{"list":[],"can_create":true,"pagenation":{"totalcount":0,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"43.224.72.82","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-01 14:53:50', 75362048) RETURNING "id" |
| 14:53:49.939 | 0.9 ms | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5495 |
| 14:53:49.992 | 0.7 ms | yii\db\Command::query | SELECT "s"."accessible_user" FROM "o6a13e2c574d5a"."tbl_visible_work_logs" "s" LEFT JOIN "o6a13e2c574d5a"."tbl_users" "u" ON u.id = s.accessible_user WHERE ("s"."user_id"=5495) AND (s.accessible_user IS NOT NULL) AND ("u"."user_status"='1') GROUP BY "s"."id", "u"."id" ORDER BY "u"."id" |
| 14:53:49.934 | 0.2 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |