Home / Companies / MongoDB / Blog / August 2009

August 2009 Summaries

2 posts from MongoDB

Filter
Month: Year:
Post Summaries Back to Blog
MongoDB can be used for log centralization due to its asynchronous insert capabilities, which prevent slowing down the user experience. The use of capped collections ensures old log data is automatically LRU'd out, preventing disk space issues and the need for log archival scripts. MongoDB's fast performance, combined with document-oriented JSON format, makes it a suitable choice for logging applications. Additionally, the profiler works similarly to a log collection, storing profile timings in a collection that can be queried.
Aug 26, 2009 307 words in the original blog post.
MongoDB can be used for real-time analytics by leveraging its upsert feature and the `$inc` operator, which allows for efficient updates to existing objects without requiring a more expensive query/modify/update sequence. This approach enables developers to track performance metrics in real-time, such as page views and uniques, without relying on traditional tools like Google Analytics. By sending a single message to the server with the update, MongoDB can handle the operation efficiently without waiting for a response, making it suitable for applications that require immediate feedback. The example demonstrates how to use the `mongo` shell syntax to update statistics in real-time using MongoDB's upsert feature and `$inc` operator.
Aug 25, 2009 402 words in the original blog post.