V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  90d0n  ›  全部回复第 1 页 / 共 9 页
回复总数  169
1  2  3  4  5  6  7  8  9  
正常, 戒烟有五年了, 有时还会梦到.
2022-12-29 09:25:21 +08:00
回复了 foreverstandbyu 创建的主题 问与答 行车记录仪有在用的吗。买哪家的好一些。
viofo 119 mini
2022-04-18 11:17:51 +08:00
回复了 jimisun 创建的主题 问与答 Java 如何通用化查询逻辑应对复杂的查询需求?
1. mybatis, 用 myabtis-plus 的 QueryWrapper, 动态拼接一下查询条件.
https://baomidou.com/pages/10c804

2. jpa, 看文档 4.8.2 那一节, Querydsl Web Support.
https://docs.spring.io/spring-data/jpa/docs/current/reference/html


实现后接口大概是这样: http://your.api/user?name=Alice&page=0&size=20&sort=age,asc
2022-03-19 11:49:07 +08:00
回复了 90d0n 创建的主题 分享发现 百度你想干什么
@dier #2
@deplivesb #3

老哥们用的什么屏蔽规则呀, 可不可以分享一下.
我订阅的规则没有屏蔽呢
从智能机出现开始一直用安卓, 也是各种折腾.
今年突发奇想换到了 iPhone.

总的来说, 真香. iPhone 真省心, 累了折腾不动了.

唯一的痛点就是没有通话录音
同 1 楼, 推荐 google 的 jib
啊这, 旧版不支持升级?
2021-03-30 10:02:04 +08:00
回复了 wangyzj 创建的主题 Java 公司开始要用 Java , jdk 版本怎么选?
新项目, 没包袱, 建议直接 11
用 angular 跟 spring 一样爽, 大而全, 不像 vue 和 react 那样到处找组件或者周边库.
angular 一把梭, 需要用的都在里边了, 非常适合 spring 程序员上手.
java 程序员吗, 那建议 angular, 概念和 spring 差不多, 看看文档直接就能上手了.
hahaha, 楼主有点意思.

我嘲讽别人 行!
别人嘲讽我 不行!
2021-02-01 09:23:00 +08:00
回复了 chaosdos 创建的主题 问与答 请教有人用过时序数据库么?
influxdb +1, 没遇见啥坑. 目前每天几千万条数据, 查询也没有啥性能问题.
2021-01-23 11:32:54 +08:00
回复了 ldq404 创建的主题 分享创造 😍 分享一个前端 [大转盘 / 九宫格] 抽奖插件 ☜(゚ヮ゚☜)
不错不错, 做的很棒!
可不可以支持一次抽奖,多个中奖奖品. 比如 点击一次抽奖获得两个奖品
2021-01-19 09:36:07 +08:00
回复了 AkideLiu 创建的主题 程序员 Spring Rest Controller @PostMapping parameter best practice ?
同意 #4

接手过一个项目, 全是 map 接参, 我 tm ******
2021-01-18 10:10:12 +08:00
回复了 style8090 创建的主题 推广 家里的橘子滞销,水果电商怎么玩
tb 下单了 10 斤, 不甜回来砸摊子了啊 https://i.v2ex.co/504J5BO2.png
2021-01-15 10:19:42 +08:00
回复了 90d0n 创建的主题 信息安全 Nacos 出现严重安全漏洞 again !
@AA5DE3F034ACCB9E #6 确实, 这是个大佬, 抓了好多 bug
更有意思的是, 修复漏洞的 1.4.1 版本又出现了新的安全漏洞...
https://github.com/alibaba/nacos/issues/4701
2021-01-13 09:46:11 +08:00
回复了 sandman511 创建的主题 程序员 restTemplate 中文乱码
```
List<HttpMessageConverter<?>> list = restTemplate.getMessageConverters();
for (HttpMessageConverter<?> httpMessageConverter : list) {
if ( httpMessageConverter instanceof StringHttpMessageConverter) {
((StringHttpMessageConverter) httpMessageConverter).setDefaultCharset(StandardCharsets.UTF_8);
break;
}
}
```

替换一下 converter 试试?
2021-01-06 09:17:03 +08:00
回复了 shangzhanyu 创建的主题 Java Java 最佳线程数怎么得来?
postgre 数据库推荐的设置方式, 一直在生产上这么设置没出啥问题 https://i.v2ex.co/504J5BO2.png
2021-01-06 09:15:41 +08:00
回复了 shangzhanyu 创建的主题 Java Java 最佳线程数怎么得来?
How to Find the Optimal Database Connection Pool Size
A formula which has held up pretty well across a lot of benchmarks for years is that for optimal throughput the number of active connections should be somewhere near ((core_count * 2) + effective_spindle_count). Core count should not include HT threads, even if hyperthreading is enabled. Effective spindle count is zero if the active data set is fully cached, and approaches the actual number of spindles as the cache hit rate falls. Benchmarks of WIP for version 9.2 suggest that this formula will need adjustment on that release. There hasn't been any analysis so far regarding how well the formula works with SSDs.

However you choose a starting point for a connection pool size, you should probably try incremental adjustments with your production system to find the actual "sweet spot" for your hardware and workload.

Remember that this "sweet spot" is for the number of connections that are actively doing work. Ignore mostly-idle connections used for system monitoring and control when working out an appropriate pool size. You should always make max_connections a bit bigger than the number of connections you enable in your connection pool. That way there are always a few slots available for direct connections for system maintenance and monitoring.

https://wiki.postgresql.org/wiki/Number_Of_Database_Connections
1  2  3  4  5  6  7  8  9  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   949 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 21:22 · PVG 05:22 · LAX 14:22 · JFK 17:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.