Performance Profiling

Total processing time: 92 ms; Peak memory: 5.628 MB. Show Profiling Timeline

总计33条数据
TimeDurationCategoryInfo
  
16:13:19.42720.6 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=4) AND ("object_id"=1940) GROUP BY "object_id"
16:13:19.44919.4 msyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=4) AND (remind_user_id = 1015 AND is_read = false) AND ("object_id"=1940) GROUP BY "object_id"
16:13:19.4205.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=23) AND ("object_id"=1940)
16:13:19.4154.9 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=4) AND ("object_id"=1940)
16:13:19.4682.1 msyii\db\Command::querySELECT "pre_sales_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (1, 2, 3)) AND ("pre_sales_id"=1940) GROUP BY "pre_sales_id"
16:13:19.4841.9 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', 1015, 6, 179, 'v2/pre-sales/get-edit', '{"id":"1940","posttime":"1784103198","access_token":"Q_7DD5LA0njCol9o5skCibRkap3ZqeYZ","device_type":"6","version_code":"179","token":"be7f2f995e36b5ae018d5e5cdb4d94e2"}', '{"code":200,"data":{"model":{"id":1940,"client_id":2128,"start_at":"2026-04-07 13:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":1015,"created_by":1015,"created_at":"2026-04-07 16:13:53","updated_at":"2026-04-07 16:13:53","following_work_content":null,"project_status":null,"end_at":"2026-04-07 15:00:00","has_following_work":false,"location_id":null,"is_draft":0,"case_id":9245,"service_id":230,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260325003001","client_document_id":null,"client_document_file":null,"indistance":999999999,"outdistance":999999999,"hours_spent":"02:00:00","client":{"id":2128,"key":2128,"name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8","logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"}},"case":{"id":9245,"case_status":3,"client_id":2128,"project_id":4132,"client":{"id":2128,"key":2128,"name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8"},"project":{"id":4132,"key":4132,"name":"AI\u670d\u52a1\u5668\u91c7\u8d2d"}},"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"engineer":{"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"}},"createdBy":{"id":1015,"key":1015,"name":"\u5434\u660a","sex":"M","department_id":2,"avatar":{"id":12,"user_id":1015,"name":"\/files\/cdn\/a57be577deb434\/avatar\/d69b398a-5951-36e9-a92e-992fe938db26.jpg"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"location":null,"locationIn":null,"locationOut":null,"preSalesProductTypes":[],"attendedContacts":[{"id":5835,"key":5835,"name":"\u674e\u5965"}],"attachmentRelationships":[],"files":[],"service":{"id":230,"serial_no":"TOAST01","title":"\u54a8\u8be2\u670d\u52a1","brand_id":33,"type_id":2,"points":50,"points_off_time":50,"points_holiday":100,"description":"\u54a8\u8be2\u670d\u52a1","created_by":1001,"created_at":"2018-09-07 20:03:43","updated_at":"2022-01-04 14:34:32","is_delete":false,"sort":14,"is_stop":false,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":2,"key":2,"name":"\u54a8\u8be2\u670d\u52a1"}},"clientDocument":null,"commentCount":{"object_id":1940,"comment":3},"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"2\u5c0f\u65f6","can_update":true,"can_delete":false,"can_complete":false,"can_create_reimbursement":true,"unread":0,"bgcolor":"#89c541","can_location_in":false,"can_location_out":false,"fileRelationships":[]},"options":[{"key":"PreSales[service_id]","name":"\u670d\u52a1\u76ee\u5f55","value":[{"key":230,"name":"\u54a8\u8be2\u670d\u52a1"}]},{"key":"PreSales[preSalesProductTypes]","name":"\u5546\u673a\u7c7b\u578b","value":[{"key":2,"name":"\u670d\u52a1\u5668"},{"key":3,"name":"\u5b58\u50a8\u8bbe\u5907"},{"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 "},{"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},{"key":88,"name":"\u79c1\u6709\u4e91"},{"key":8,"name":"\u4e91\u684c\u9762"},{"key":7,"name":"\u8f6f\u4ef6"},{"key":10,"name":"\u56fe\u5f62\u5de5\u4f5c\u7ad9"},{"key":69,"name":"\u5907\u4efd"},{"key":11,"name":"\u4e2a\u4eba\u8ba1\u7b97\u673a"},{"key":12,"name":"\u7b14\u8bb0\u672c"},{"key":13,"name":"\u6253\u5370\u673a"},{"key":14,"name":"UPS"},{"key":16,"name":"\u8fd0\u7ef4\u670d\u52a1"},{"key":17,"name":"\u5de5\u63a7\u673a"},{"key":18,"name":"\u673a\u623f\u8bbe\u5907"},{"key":19,"name":"\u6280\u672f\u670d\u52a1"},{"key":20,"name":"\u529e\u516c\u8bbe\u5907"},{"key":21,"name":"\u6570\u7801\u8bbe\u5907"},{"key":22,"name":"\u670d\u52a1"},{"key":23,"name":"\u793c\u54c1"},{"key":75,"name":"\u8f6f\u4ef6\u5f00\u53d1"},{"key":106,"name":"\u516c\u6709\u4e91"}]},{"key":"PreSales[has_following_work]","name":"\u540e\u7eed\u5de5\u4f5c","value":[{"key":0,"name":"\u5426"},{"key":1,"name":"\u662f"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"39.156.194.178","ua":"jinchangxiao\/1.0.43 (HUAWEI Mate 60 BRA-AL00; HarmonyOS 6.1.0)"}', FALSE, '2026-07-15 16:13:19', 86190080) RETURNING "id"
16:13:19.4711.9 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "pre_sales_id"=1940
16:13:19.4010.8 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='Q_7DD5LA0njCol9o5skCibRkap3ZqeYZ'
16:13:19.4740.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id"=9245
16:13:19.4030.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1015
16:13:19.4050.5 msyii\db\Command::querySELECT p.*, p.end_at - p.start_at AS hours_spent FROM "a57be577deb434"."tbl_pre_sales" "p" LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id WHERE "p"."id"='1940'
16:13:19.4120.5 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1015)
16:13:19.4130.4 msyii\db\Command::querySELECT *, "product_type_id" AS "key", "description" AS "value" FROM "a57be577deb434"."tbl_pre_sales_product_types" WHERE "pre_sales_id"=1940
16:13:19.4260.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=33
16:13:19.4250.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=230
16:13:19.4090.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128
16:13:19.4730.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=9245
16:13:19.4760.4 msyii\db\Command::querySELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "is_delete"=FALSE ORDER BY "order", "id"
16:13:19.4140.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=5835
16:13:19.4100.4 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1015)
16:13:19.4110.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1015
16:13:19.4120.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=2
16:13:19.4000.3 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
16:13:19.4140.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_attend_pre_sales" WHERE "pre_sales_id"=1940
16:13:19.4060.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128
16:13:19.4750.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=230
16:13:19.4090.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5087
16:13:19.4080.3 msyii\db\Command::querySELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=4132
16:13:19.4100.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1015
16:13:19.4270.3 msyii\db\Command::querySELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_service_type" WHERE "id"=2
16:13:19.4080.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128
16:13:19.4070.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5087
16:13:19.4070.3 msyii\db\Command::querySELECT "id", "case_status", "client_id", "project_id" FROM "a57be577deb434"."tbl_cases" WHERE "id"=9245