解读MongoDB 2.6 发布
时至今日,MongoDB已走过了5个年头,MongoDB 2.6的发布,MongoDB CTO Eliot说这是有史以来(Our Biggest Release Ever)最意义重大的版本。 主要变化: 聚合增强Aggregation Enhancements db.collection.aggregate() 支持返回游标,这意味着可以返回任意记录数
时至今日,MongoDB已走过了5个年头,MongoDB 2.6的发布,MongoDB CTO Eliot说这是有史以来(Our Biggest Release Ever)最意义重大的版本。
主要变化:
聚合增强Aggregation Enhancements
db.collection.aggregate() 支持返回游标,这意味着可以返回任意记录数;支持查询计划explain()
;排序及其他改进,略。
集成全文搜索Text Search Integration
默认支持文本搜索,新的操作符$text.
{ $text: { $search: <string>, $language: <string> } }</string></string>
插入和更新的改进Insert and Update Improvements
_id
字段现在总数在文档第一个字段(你知道以前更新过文档有多乱吗,_id
不知道跑哪去了);
重命名字段的更新可能会导致字段的重新排序;
其他一些新的或者增量的操作符,略。
新的写操作协议
协议上的变化,把写操作和写确认(writeconcerns)集成在一起了,不需要单独调用
getLastError了;
支持批量操作。
安全方面改进
improved SSL support, x.509-based authentication
认证方面的改进,支持集合粒度的角色(可以按照集合去授权或者配置角色了)
查询引擎及索引的改进
这个才是重要的。查询中可以使用多个索引了;
后台索引在从库上也支持了;
创建索引时dropDups 选项删除了;
分片及复制方面增强
改进太少,都不好意思提。新增了一个mergeChunks 命令用来合并两个连续范围的chunks,要求至少一个chunk是空的。
存储方面
默认使用usePowerOf2Sizes,我只能说,好一点,没啥根本性的改进。
其他改进
去除了最大连接数20,000的限制;
工具的一些小改进,包括mongoexport,mongodump,mongostat;
总结及点评
依我看,都是些小的改进,不少是早就应该解决的一些细节问题,改进远没有吹的那么大。
Eliot在博客里吹嘘"From the very beginning, MongoDB has offered developers a simple and elegant way to manage their data.",依我看还远未达到。另外他还顺便推销了他们的MMS服务,什么支持按时间点恢复啦,我只想说,太不方便了,需要用的还是试试本社区的mongobackup吧。
原文地址:解读MongoDB 2.6 发布, 感谢原作者分享。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

You can view various contents on Xiaohongshu, which can provide you with various help and help you discover a better life. If you have anything you want to share, you can post it here so that everyone can take a look. , and at the same time, it can bring you profits. It is very cost-effective. If you don’t know how to publish your works here, you can check out the tutorial. You can use this software every day and publish various contents to help everyone use it better. Don’t miss it if you need it! 1. Open Xiaohongshu and click the plus icon below. 2. There are [Video] [Picture] [Live Picture] options here; select the content you want to publish and click to check. 3. Select [Next] on the content editing page. 4. Enter the text content you want to publish and click [Publish Pen]

With the rapid development of social media, short video platforms have become the main channel for many users to express themselves and share their lives. Many users may encounter various problems when publishing videos of their works on Xiaohongshu. This article will discuss the reasons that may cause the video publishing of Xiaohongshu works to fail and provide the correct publishing method. 1. Why can’t Xiaohongshu publish videos of works? The Xiaohongshu platform may occasionally experience system failures, which may be caused by system maintenance or upgrades. In this case, users may encounter the problem of being unable to publish videos of their works. Users need to wait patiently for the platform to return to normal before trying to publish. An unstable or slow network connection may prevent users from posting videos of their work on Xiaohongshu. Users should confirm their network environment to ensure that the connection is stable and

As a lifestyle sharing platform, Xiaohongshu has attracted a large number of users to share their daily life and grow products. Many users have reported that their published content cannot be displayed. What is going on? This article will analyze the possible reasons why Xiaohongshu cannot be released and provide solutions. 1. Why can’t Xiaohongshu be released? Xiaohongshu implements strict community guidelines and has zero tolerance for publishing advertisements, spam, vulgar content, etc. If the user's content violates the regulations, the system will block it and the content will not be displayed. Xiaohongshu requires users to publish high-quality and valuable content, and the content needs to be unique and innovative. If the content is too generic and lacks innovation, it may not pass review and therefore not be displayed on the platform. 3. Account abnormality

As a popular social e-commerce platform, Xiaohongshu has attracted a large number of users to share their daily life and shopping experiences. Sometimes we may inadvertently publish some inappropriate content, which needs to be deleted in time to better maintain our personal image or comply with platform regulations. 1. How to delete Xiaohongshu releases? 1. Log in to your Xiaohongshu account and enter your personal homepage. 2. At the bottom of the personal homepage, find the "My Creations" option and click to enter. 3. On the "My Creations" page, you can see all published content, including notes, videos, etc. 4. Find the content that needs to be deleted and click the "..." button on the right. 5. In the pop-up menu, select the "Delete" option. 6. After confirming the deletion, the content will disappear from your personal homepage and public page.

It is recommended to use the latest version of MongoDB (currently 5.0) as it provides the latest features and improvements. When selecting a version, you need to consider functional requirements, compatibility, stability, and community support. For example, the latest version has features such as transactions and aggregation pipeline optimization. Make sure the version is compatible with the application. For production environments, choose the long-term support version. The latest version has more active community support.

In today's social network era, Xiaohongshu has become an important platform for young people to share their lives and obtain information. Many users hope to attract more attention and traffic by publishing content on Xiaohongshu. So, when is the best time to post content? This article will explore in detail the selection of Xiaohongshu’s publishing time and the publishing location with the most traffic recommendations. 1. When is the best time to publish Xiaohongshu? The best time to publish content on Xiaohongshu is usually during periods of high user activity. According to the characteristics and behavioral habits of Xiaohongshu users, there are several time periods that are more appropriate. During the time period from 7 pm to 9 pm, most users have returned home from get off work and started browsing content on their mobile phones in search of relaxation and entertainment. Therefore, content posted during this period is more likely to attract users

With the rise of short video platforms, Xiaohongshu has become a platform for many people to share their lives, express themselves, and gain traffic. On this platform, publishing video works is a very popular way of interaction. So, how to publish Xiaohongshu video works? 1. How to publish Xiaohongshu video works? First, make sure you have a video content ready to share. You can use your mobile phone or other camera equipment to shoot, but you need to pay attention to the image quality and sound clarity. 2. Edit the video: In order to make the work more attractive, you can edit the video. You can use professional video editing software, such as Douyin, Kuaishou, etc., to add filters, music, subtitles and other elements. 3. Choose a cover: The cover is the key to attracting users to click. Choose a clear and interesting picture as the cover to attract users to click on it.

Node.js is a server-side JavaScript runtime, while Vue.js is a client-side JavaScript framework for creating interactive user interfaces. Node.js is used for server-side development, such as back-end service API development and data processing, while Vue.js is used for client-side development, such as single-page applications and responsive user interfaces.
