Saxton's recent timeline updates
Saxton

Saxton

V2EX member #549586, joined on 2021-06-29 09:49:58 +08:00
Per Saxton's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
Saxton's recent replies
@nnegier 最优解决方案了,不要去试图避免 new ,如果你使用 mapper 方式只会更麻烦。
// 使用 ParameterizedTypeReference 进行包装
ParameterizedTypeReference<Result<GlobalUser>> reference = new ParameterizedTypeReference<Result<GlobalUser>>() {};
ResponseEntity<Result<GlobalUser>> response = restTemplate.exchange(url, HttpMethod.PUT, null, reference); //①
if (response.getStatusCode().is2xxSuccessful()){
Result<GlobalUser> result = response.getBody();
if(result.getCode()==200){
GlobalUser globalUser = result.getData(); //这行代码会出错
}
}
Mar 31, 2023
Replied to a topic by yuxi521 程序员 也讲讲自己在帝都走路上被骂的事情
@acctv2 你觉得是也行, 但我的选修就是政治,只是对这方面有过钻研。
Mar 31, 2023
Replied to a topic by yuxi521 程序员 也讲讲自己在帝都走路上被骂的事情
@acctv2 就是上一任留下来的烂摊子, 到去年终于炸开锅了
Mar 30, 2023
Replied to a topic by yuxi521 程序员 也讲讲自己在帝都走路上被骂的事情
@leedarmau 房价这东西真不能怪他,是上一任留下的烂摊子,杠杠搞的起飞
你前端推荐就拿 nodejs 开发好了,但我的感觉是还不如买现成模板。。。 开发周期长投资成本大,还不如直接买别人做好的模板
在 ES 中数据都是扁平的,没有关系的,ES 更喜欢扁平化的数据
正好我做过这个业务,可以来回答回答

首先你要搞清楚 ES 和传统 DB 的区别,ES 一般只做检索,光没有事务这点就足以了
第二你要知道你想拿 ES 来做什么

我目前的做法是 ES 只做检索,只要系统上涉及到复杂检索的全部走 ES ,数据在写入时,热点数据同步写入 ES ,冷数据异步写入
ES 数据冗余为宽表数据,监听 binlog 来实现对冗余的字段进行更新。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2339 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
♥ Do have faith in what you're doing.