惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

InfluxDB

InfluxDB 3 Open Source Now in Public Alpha Under MIT/Apache 2 License - V2EX [讨论]InfluxDB 有应用到非监控领域的案例吗? - V2EX InfluxDB Cluster - InfluxDB Enterprise 集群的开源替代方案 - V2EX Metamask 钱包有可能会被破解吗? - V2EX influxdb backup 失败怎么回事? - V2EX influxDB 用 DISTINCT 查询返回的结果中时间为空,有什么办法能在查询结果中返回正确的时间吗? - V2EX InfluxDB Studio - V2EX influxdb 0.9 如何把两个 series 的数据做加减乘除? - V2EX
使用 influxdb2.x 版本,并发插入数据数据丢失 - V2EX
futaotao5866 · 2024-11-27 · via InfluxDB

部分伪代码 @Override public void insert() { WriteApi writeApi = influxDBClient.makeWriteApi(); for (int i = 0; i < 10000; i++) { Demo demo = new Demo(); demo.setTime(Instant.now());

   writeApi.writeMeasurement("s100", "d", WritePrecision.NS, demo);
}

} 如果每插入一条休眠 1s ,那么可以全部插入数据不丢失 @Override public void insert() { WriteApi writeApi = influxDBClient.makeWriteApi(); for (int i = 0; i < 10000; i++) { Demo demo = new Demo(); demo.setTime(Instant.now());

   writeApi.writeMeasurement("s100", "d", WritePrecision.NS, demo);
   try {
            Thread.sleep(1);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
}

} influxdb 安装在虚拟机中 4C16G ,不清楚是自己哪里出了问题