October 2019 Summaries
9 posts from MongoDB
Filter
Month:
Year:
Post Summaries
Back to Blog
Anya Hargil is a rising senior at Princeton University studying Computer Science, who recently took a year off from school to travel around the world. She joined MongoDB's Data Warehouse team as an intern and has been working on normalizing data for data scientists, building a tool to productionalize data for the Data Science team, and learning new technologies with autonomy and freedom to make her own decisions. The culture at MongoDB emphasizes growth, learning, and having fun, allowing employees to play around and experiment while giving them visibility throughout the organization. Anya's mentor is supportive and allows her to work at a comfortable pace, making her feel valued and part of the team.
Oct 30, 2019
814 words in the original blog post.
This Java template for building REST APIs with Spring Boot and MongoDB provides a comprehensive set of features and configurations, including multi-document ACID transactions, exception management, aggregation pipelines, Swagger documentation, and more. The template includes a `SpringConfiguration` class that sets up the MongoDB connection and configuration, as well as a `PersonController` that handles exceptions and returns error responses. The example also demonstrates how to use transactions to save multiple documents in a single operation, and how to retrieve the average age of a collection using an aggregation pipeline. Additionally, the template includes Swagger documentation for API endpoints, allowing developers to easily explore and test the APIs.
Oct 28, 2019
1,073 words in the original blog post.
This post covers the last CRUD operation, Delete, in a series on creating, reading, updating, and deleting data using C# and MongoDB. It explains how to create filters for documents to be deleted, using methods such as `DeleteOne()` and `DeleteMany()`, and provides examples of how to delete single or multiple records based on specific conditions, including filtering by score in a collection of student grades. The post concludes that while `DeleteOne()` can be used for efficiency with single records, `DeleteMany()` is more suitable for deleting multiple records with the same filter condition.
Oct 25, 2019
751 words in the original blog post.
PayPal has been added as a payment method for fully-managed MongoDB services, making it easier for developers to pay for their databases using PayPal's flexible payment processing. This new option is available in over 66 regions and 22 countries worldwide, catering to the diverse needs of users around the globe. The integration with PayPal is seamless, allowing users to select this payment method when setting up their paid clusters, providing a convenient and secure checkout experience. With this addition, MongoDB aims to expand its reach and make its services more accessible to developers in various parts of the world.
Oct 21, 2019
266 words in the original blog post.
Now that you have a connection to your MongoDB cluster, you can use the MongoDB Node.js Driver to interact with your database and perform CRUD operations. The driver allows you to easily connect to MongoDB databases from within Node.js applications. To get started, you need to install the driver using npm, create a free MongoDB Atlas cluster, load sample data, and note the connection string for your cluster. Then, you can use the `MongoClient` class to connect to your database, list the databases in your cluster, and print their names to the console. The example code includes a main function that connects to the database, lists the databases, catches any errors, closes the connection, and calls itself recursively until it runs out of iterations.
Oct 17, 2019
1,466 words in the original blog post.
MongoDB has a default limit of 64k incoming connections, and creating a thread per connection can lead to performance issues on Linux servers due to limited ulimits such as nofile, nproc, and stack. Increasing these limits using the `ulimit` command and adjusting kernel settings like `max_map_count` and `ip_local_port_range` can help create tens of thousands of connections. The author found that EC2 instances from certain instance types (M5) have a lower limit on incoming connections compared to others (c3), highlighting the importance of considering instance type when tuning for high-performance connections.
Oct 16, 2019
1,002 words in the original blog post.
The text discusses how to ensure that documents read within a transaction in MongoDB are not modified by another operation before the commit. It explains how concurrency works in MongoDB, both inside and outside of transactions, focusing on locking mechanisms and write conflicts. To prevent other operations from modifying documents being read within a transaction, it suggests emulating a "write lock" by updating a document with an exclusive attribute, such as ObjectId. This method ensures that the document is locked until the transaction is committed or aborted. The text also emphasizes that MongoDB's flexible schema often eliminates the need for transactions altogether and should be used judiciously.
Oct 15, 2019
1,302 words in the original blog post.
Ticketek has successfully integrated MongoDB Atlas and Google Cloud to drive analytics, leveraging the scalability and speed of MongoDB to handle massive ticket sales and providing real-time data insights through BigQuery. The company's use of MongoDB Charts for key reporting and potential future adoption of Atlas Data Federation will help consolidate customer and transactional data, enabling better insights and personalization in their marketing efforts.
Oct 08, 2019
1,340 words in the original blog post.
Update operations are a crucial part of data manipulation, allowing developers to modify existing documents in a database. The C# driver provides an efficient way to perform updates using the `UpdateOne()` method, which takes a filter and an update as parameters. Filters determine which documents will be updated, while updates specify the changes to be made. The `$` positional operator can be used to access specific elements within arrays, enabling complex updates such as modifying individual quiz scores in a student's document. Additionally, the `UpdateMany()` method allows for updating multiple documents at once, making it easier to manage large datasets. By mastering update operations, developers can ensure their applications remain flexible and responsive to changing data.
Oct 02, 2019
745 words in the original blog post.