MongoDB 8.0新特性:可查询加密与时间序列增强

MongoDB 8.0: Queryable Encryption and Time Series Enhancements

| iDev Tech | 2026-06-28T14:00:00

详解MongoDB 8.0的两大核心更新:可查询加密技术和时间序列集合的性能与功能提升。

Detailed overview of MongoDB 8.0's two major updates: Queryable Encryption technology and time series collection improvements.

可查询加密MongoDB 8.0的可查询加密(Queryable Encryption)允许对加密数据直接执行等值查询和范围查询,无需在服务端解密。数据在客户端加密后存储,即使数据库被入侵,攻击者也无法读取原始数据。支持的查询类型:精确匹配、范围查询、前缀匹配。时间序列增强时间序列集合在8.0中获得重大性能提升:写入吞吐量提升40%、压缩率提升25%、支持二级索引加速复杂查询。新增的窗口函数支持使得在数据库层面就能完成移动平均、累计求和等时序分析操作。其他更新Atlas Search增强:支持向量搜索(Vector Search)用于AI语义检索;聚合管道新增$percentile和$median操作符;改进的分片均衡器减少数据迁移对在线业务的影响。


Queryable EncryptionMongoDB 8.0's Queryable Encryption allows equality and range queries on encrypted data without server-side decryption. Data is encrypted at the client before storage — even if the database is compromised, attackers cannot read raw data. Supported query types: exact match, range queries, prefix matching.Time Series EnhancementsTime series collections see major improvements in 8.0: 40% higher write throughput, 25% better compression, and secondary index support for complex queries. New window function support enables moving averages, cumulative sums, and other time series analytics at the database level.Other UpdatesAtlas Search enhancements: Vector Search support for AI semantic retrieval; new $percentile and $median aggregation operators; improved shard balancer reducing data migration impact on production workloads.

← Back to News