Database Queries

总计13条数据
TimeDurationTypeQuery
  
10:49:40.9542.7 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='LpLquexa4MxJRClJNdb9gPVa_MzadLnu'

10:49:40.9571.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

10:49:40.95918.1 msSELECTSELECT COUNT(*) FROM "a57be577deb434"."tbl_unread_comments" WHERE object_type = '7' AND object_id = '3843' AND remind_user_id = 1001

10:49:40.9774.6 msSELECTSELECT 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_unread_comments' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

10:49:40.9829.3 msSELECTselect 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_unread_comments' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

10:49:40.99216.0 msUPDATEUPDATE "a57be577deb434"."tbl_unread_comments" SET "is_read"=TRUE WHERE ("object_type"='7') AND ("object_id"='3843') AND ("remind_user_id"=1001)

10:49:41.00818.9 msSELECTSELECT COUNT(*) FROM (SELECT * FROM "a57be577deb434"."tbl_comments" WHERE ("parent" IS NULL) AND ("object_type"='7') AND ("object_id"='3843') ORDER BY "created_at" DESC) "c"

10:49:41.02717.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_comments" WHERE ("parent" IS NULL) AND ("object_type"='7') AND ("object_id"='3843') ORDER BY "created_at" DESC LIMIT 20

10:49:41.04515.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_comments" WHERE "parent" IN (170225, 170224, 170223, 170222, 170221, 170220, 170219, 170218, 170217, 170216, 170215, 170214, 170213, 170212, 170211, 170190, 170189, 170177, 170176, 170175) ORDER BY "created_at"

10:49:41.0611.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=310) AND ("object_id" IN (170225, 170224, 170223, 170222, 170221, 170220, 170219, 170218, 170217, 170216, 170215, 170214, 170213, 170212, 170211, 170190, 170189, 170177, 170176, 170175))

10:49:41.0620.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 1000)

10:49:41.0630.3 msSELECTSELECT "user_id", "meta_value" AS "avatar" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1001, 1000))

10:49:41.0641.3 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 0, 263, 'v2/comment/list', '{"access_token":"LpLquexa4MxJRClJNdb9gPVa_MzadLnu","device_type":"0","object_id":"3843","object_type":"7","version_code":"263","page":"1","token":"a867f52ef82b05d2131738593679245d","posttime":"1751683780"}', '{"code":200,"data":{"list":[{"id":170225,"object_id":3843,"object_type":"7","parent":null,"description":"\u554a\u554a\u554a","created_by":1001,"created_at":"2025-07-03 17:56:12","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170224,"object_id":3843,"object_type":"7","parent":null,"description":"\u5475\u5475\u5475","created_by":1000,"created_at":"2025-07-03 17:50:04","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","userMetas":[{"user_id":1000,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}]},"can_delete":false},{"id":170223,"object_id":3843,"object_type":"7","parent":null,"description":"\u54c8\u54c8\u54c8","created_by":1000,"created_at":"2025-07-03 17:49:57","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","userMetas":[{"user_id":1000,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}]},"can_delete":false},{"id":170222,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u6d4b\u6d4b","created_by":1000,"created_at":"2025-07-03 17:49:53","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","userMetas":[{"user_id":1000,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}]},"can_delete":false},{"id":170221,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1000,"created_at":"2025-07-03 17:49:49","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","userMetas":[{"user_id":1000,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}]},"can_delete":false},{"id":170220,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd555","created_by":1001,"created_at":"2025-07-03 17:46:20","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170219,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1001,"created_at":"2025-07-03 17:46:14","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170218,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1001,"created_at":"2025-07-03 17:46:10","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170217,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b","created_by":1001,"created_at":"2025-07-03 16:54:57","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170216,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\uff0c","created_by":1001,"created_at":"2025-07-03 16:54:48","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170215,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b","created_by":1001,"created_at":"2025-07-03 16:54:40","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170214,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1001,"created_at":"2025-07-03 16:54:25","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170213,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b","created_by":1001,"created_at":"2025-07-03 16:49:05","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170212,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b","created_by":1001,"created_at":"2025-07-03 16:43:39","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170211,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b","created_by":1001,"created_at":"2025-07-03 16:43:26","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170190,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1001,"created_at":"2025-07-03 12:11:58","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170189,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1001,"created_at":"2025-07-03 11:57:35","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","userMetas":[{"user_id":1001,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}]},"can_delete":true},{"id":170177,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1000,"created_at":"2025-07-02 10:24:48","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","userMetas":[{"user_id":1000,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}]},"can_delete":false},{"id":170176,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1000,"created_at":"2025-07-02 10:24:40","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","userMetas":[{"user_id":1000,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}]},"can_delete":false},{"id":170175,"object_id":3843,"object_type":"7","parent":null,"description":"\u6d4b\u8bd5","created_by":1000,"created_at":"2025-07-02 10:23:51","reply_to":null,"is_system":false,"for_user":null,"description2":"","comments":[],"attachmentRelationships":[],"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","userMetas":[{"user_id":1000,"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"}]},"can_delete":false}],"unread":7,"pagenation":{"totalcount":21,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-05 10:49:41') RETURNING "id"