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

推荐订阅源

T
The Exploit Database - CXSecurity.com
A
Arctic Wolf
K
Kaspersky official blog
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy & Cybersecurity Law Blog
O
OpenAI News
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cisco Blogs
AWS News Blog
AWS News Blog
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
美团技术团队
T
Threatpost
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
C
CERT Recently Published Vulnerability Notes
Blog — PlanetScale
Blog — PlanetScale
C
Cybersecurity and Infrastructure Security Agency CISA
F
Full Disclosure
博客园_首页
N
Netflix TechBlog - Medium
Security Latest
Security Latest
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Register - Security
The Register - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recent Announcements
Recent Announcements
博客园 - Franky
P
Palo Alto Networks Blog
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Cisco Talos Blog
Cisco Talos Blog
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 【当耐特】
GbyAI
GbyAI

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 ,不清楚是自己哪里出了问题