February 2020 Summaries
11 posts from MongoDB
Filter
Month:
Year:
Post Summaries
Back to Blog
The text discusses the concept of Automatic Refresh of Materialized Views in MongoDB, specifically how to use MongoDB Atlas Triggers to achieve this. The author proposes a solution that utilizes Scheduled Triggers to run a function every 5 minutes, which queries all needed materialized views from a configuration collection, builds an execution array of $merge commands, and runs them in parallel using Promise.all. This allows for the automatic refresh of Materialized Views according to configured pipelines in a MongoDB cluster. The solution is flexible and dynamic, enabling users to classify their mviews with different configurations consumed at different time intervals with dedicated triggers.
Feb 25, 2020
900 words in the original blog post.
Transactions and Read/Write Concerns are crucial for achieving performance at scale across MongoDB applications. Single-document atomicity provides guarantees that meet data integrity needs, while multi-document ACID transactions offer a complete range of use cases with MongoDB. To maintain predictable database performance, developers should consider transaction runtime limits, number of operations in a transaction, and distributed, multi-shard transactions. Exception handling is also essential to catch and retry transactions that abort due to temporary exceptions. The choice of write guarantees and read concerns can significantly impact performance, so it's crucial to choose the right ones for each application. By following these best practices, developers can ensure their MongoDB applications are optimized for performance and scalability.
Feb 25, 2020
1,345 words in the original blog post.
MongoDB has introduced Client-Side Field Level Encryption (FLE) in version 4.2, allowing selective encryption of individual document fields on the client-side, providing an additional layer of security and compliance with regulations such as GDPR and CCPA. FLE is transparent to the server and handled exclusively within the MongoDB drivers on the client, making it a different approach than column encryption used in relational databases. It is useful for regulatory compliance, managed database services, and protecting sensitive data such as personally identifiable information. The FAQ section addresses common questions about performance impact, relationship with regular at-rest encryption, query support, key rotation, and compatibility with key management solutions. To start using FLE, it's recommended to live migrate existing unencrypted data into a new MongoDB cluster with FLE enabled on relevant fields.
Feb 21, 2020
1,215 words in the original blog post.
The summary is as follows: The MongoDB aggregation framework allows for complex data manipulation and querying of documents in collections. In this tutorial, developers are introduced to using the Go programming language with MongoDB Atlas to perform aggregations such as grouping, matching, and joining documents from different collections. Native Go data structures can be used to represent the results of these operations, providing a more structured approach than working directly with BSON arrays. The aggregation framework offers various operators that can be combined to achieve specific use cases, and developers are encouraged to explore the official documentation for further learning.
Feb 20, 2020
1,634 words in the original blog post.
The MongoDB Community is evolving into a cohesive and vibrant ecosystem with a unified forum platform, replacing multiple existing online spaces. The new forums offer a single sign-on experience using MongoDB Cloud accounts or Google accounts, allowing users to easily access knowledge resources, connect with others, and share experiences. A welcome campaign, including exclusive badges and a tree-planting initiative, encourages community participation, while additional resources like a getting-started guide and a chatbot are available to assist new members.
Feb 19, 2020
460 words in the original blog post.
The new version of the Terraform MongoDB Atlas Provider, 0.4.0, introduces several changes to improve the user experience and reduce potential confusion. Before upgrading, users are advised to follow standard Terraform Provider upgrade procedures, including backing up configuration files and state files, as well as enabling backups on their MongoDB Atlas clusters. The provider has deprecated an argument name in the database user resource, requiring a change from "database_name" to "auth_database_name". Additionally, the major change of defining each IP whitelist entry as its own resource is introduced, allowing for easier modification with minimal impact. Users are also informed about new resources and encouraged to check out the changelog for more details on upgrading to 0.4.0, which can be done by simply running `terraform init -upgrade`.
Feb 18, 2020
789 words in the original blog post.
Sharding is a key consideration for achieving performance at scale in MongoDB, allowing databases to automatically scale out across multiple nodes and regions to handle growing data sizes and write-intensive workloads. This enables seamless scaling of the database as applications grow beyond hardware limits without adding complexity to the application. Sharding offers different strategies, including ranged sharding for range-based queries, hashed sharding for uniform distribution of writes, and zoned sharding for custom data placement rules, with MongoDB Atlas providing a visual UI or API for implementing these policies. To get the full benefit of sharding, it's essential to ensure a uniform distribution of shard keys, avoid scatter-gather queries for operational workloads, use hashed-based sharding when appropriate, and pre-split and distribute chunks before loading data into new collections.
Feb 18, 2020
750 words in the original blog post.
To become a Product Manager at MongoDB, one must first understand that it's not just about telling engineers what to work on, but rather helping the team make informed decisions to solve customer problems while minimizing resources. The role involves analyzing customer pain points, prioritizing them, and facilitating brainstorming sessions with the engineering team to come up with solutions. Once a solution is built, the Product Manager must think about how to commercialize it and drive users to engage with it. Ultimately, the goal is to maximize impact with limited resources while minimizing barriers to efficiency. The day-to-day involves making joint decisions with the team, analyzing data, and facilitating discussions to gain consensus on customer problems and solutions.
Feb 12, 2020
1,426 words in the original blog post.
MongoDB provides a broad range of index types and features with language-specific sort orders to support complex access patterns to your data. Compound indexes are created by combining multiple fields, following the ESR rule for optimal performance. Covered queries return results from an index directly without accessing source documents, and can be identified using the `explain()` method. Indexes on low-cardinality fields should exhibit high cardinality, while unnecessary indexes consume resources and should be eliminated. Wildcard indexes offer flexibility but require careful planning, and text search is useful for matching specific words in a field. Partial indexes reduce performance overhead by only including documents that will be accessed through the index. Multi-key indexes are used for querying arrays, and regular expressions should be carefully chosen to avoid inefficiencies. Index optimizations available in the WiredTiger storage engine can improve performance, and visualization tools like MongoDB Compass and Atlas Data Explorer provide insights into index coverage and usage. Automated index recommendations are available in MongoDB Atlas, providing sample queries and threshold-based slow query detection.
Feb 11, 2020
1,491 words in the original blog post.
The MongoDB Atlas Free tier offers a forever-free option with promotional code NICRABOY200 for a more powerful cluster. To interact with data through native Go data structures, map MongoDB document fields to fields within these structures using BSON annotations. This approach simplifies working with data and provides benefits such as autocomplete, error handling, and methods specific to the data structure. The tutorial covers creating and interacting with native Go data structures, including converting previous examples to use them with Find and Insert operations, and demonstrates how to create and insert data into MongoDB collections using these new data structures.
Feb 06, 2020
1,068 words in the original blog post.
Winston Vargo, an Enterprise Solutions Architect at MongoDB, joined the company after being drawn to its technology's potential to change the industry. He has grown significantly throughout his career, taking on challenging projects such as building a data architecture that can survive entire data center failures without impact on customers' health and safety, and working with hedge funds to store years of time-series data. Vargo praises MongoDB's high standards for execution and the commitment to excellence that exists throughout the company. He also appreciates the team culture, which emphasizes teamwork, easy-to-work-with colleagues, and an extreme feedback culture that encourages growth and improvement. As a Solution Architect at MongoDB, Vargo is part of a team focused on enabling developers and architects to be successful using MongoDB, and he encourages others to join the company for new challenges in Pre-Sales roles.
Feb 05, 2020
868 words in the original blog post.