上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页
摘要: CREATE OR REPLACE FUNCTION tuomin() RETURNS VOID AS$$DECLARE t_row RECORD;BEGIN FOR t_row in 1..10000 LOOP INSERT INTO "public"."log_task_execution"(" 阅读全文
posted @ 2021-09-07 20:49 wangssd 阅读(539) 评论(0) 推荐(0)
摘要: long startTime = System.currentTimeMillis(); System.out.println(LocalDateTime.now() + "代码段开始时间" + startTime); ....... long endTime = System.currentTim 阅读全文
posted @ 2021-09-07 11:45 wangssd 阅读(135) 评论(0) 推荐(0)
摘要: 使用jmeter进行接口性能测试 jmeter 汇总报告各参数说明: Label :执行样品的标签,如HTTP请求的名称,事务控制器名称样本 :执行的,具有相同标签的样本数量。需要注意,多个样本同名的将被统计在一起,所以在编写脚本时样品命名应该唯一,除非你希望这么做。 平均值: 一组样本的平均响应时 阅读全文
posted @ 2021-09-06 14:54 wangssd 阅读(369) 评论(0) 推荐(0)
摘要: 系统响应时间、系统吞吐量、系统并发量 cpu、内存、IO cpu调优: linux:性能分析工具 命令: top vmstat pidstat top(默认每3s刷新一次):显示系统整体的cpu和内存使用情况,以及各个进程的资源使用情况 stat系列(vmstat、iostat、netstat、pi 阅读全文
posted @ 2021-09-04 14:58 wangssd 阅读(251) 评论(0) 推荐(0)
摘要: select 2 as type, name from em_school union all select 3 as type, name from em_area 阅读全文
posted @ 2021-09-01 14:11 wangssd 阅读(1130) 评论(0) 推荐(0)
摘要: partition by:进行分组 ORDER BY:进行排序 row_number:统计行数 select a.* from ( select *, "row_number"() over (partition by hall_id,center_frequency ORDER BY last_d 阅读全文
posted @ 2021-08-13 17:44 wangssd 阅读(1109) 评论(0) 推荐(0)
摘要: java.lang.Integer java.util.list 阅读全文
posted @ 2021-08-07 11:28 wangssd 阅读(77) 评论(0) 推荐(0)
摘要: 使用ObjectMapper 字节转对象: object = objectMapper.readValue(byte[], class.class) Object转对象(直接强转报错): object = objectMapper.convertValue(json, class.class) 阅读全文
posted @ 2021-08-04 11:33 wangssd 阅读(370) 评论(0) 推荐(0)
摘要: 查询表中数据大小: --数据库中单个表的大小(不包含索引) select pg_size_pretty(pg_relation_size('表名')); --查出所有表(包含索引)并排序SELECT table_schema || '.' || table_name AS table_full_na 阅读全文
posted @ 2021-08-04 09:09 wangssd 阅读(329) 评论(0) 推荐(0)
摘要: 当涉及Spring时: 如果您想在测试中使用Spring测试框架功能(例如)@MockBean,则必须使用@ExtendWith(SpringExtension.class)。它取代了不推荐使用的JUnit4@RunWith(SpringJUnit4ClassRunner.class) 当不涉及Sp 阅读全文
posted @ 2021-07-27 11:04 wangssd 阅读(7920) 评论(0) 推荐(4)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页