Open source MongoDB gets richer query commands
More sophicated MongoDB queries could dramatically improve system performance, 10gen claims
IDG News Service - In an effort to improve how MongoDB supplies its data to external applications, MongoDB keeper 10gen has extended the open source data store's query language, providing developers with more sophisticated ways to extract and transform data.
"We've focused on making it easier for developers to write code against MongoDB," said Jared Rosoff, 10Gen's product marketing liaison, of the new release. "We found that a lot of people were have trouble doing things that are relatively simple in SQL."
The fresh release of MongoDB 2.2 includes a new batch of query operators and expressions, as well as a pipeline-processing framework that will allow MongoDB to process data itself in serial multistep procedures. 10gen calls this collection of technologies a real-time aggregation framework.
MongoDB 2.2 has also been outfitted with a new locking mechanism and can now tag individual database shards as well.
Overall, this release -- the first major one since MongoDB 2.0 a year ago -- has gotten 600 new tweaks. (Production ready releases of MongoDB are even numbered, while the odd number versions, such as 2.1, are for internal testing and development.)
MongoDB, like most NoSQL data storage software, has been criticized for offering only simple methods of retrieving data, compared to the rich set of commands SQL databases provide. With prior versions of MongoDB, any processing against a set of queried records had to be done by external application programming, or through the MapReduce processing framework, which was not the best fit for the data store for various reasons, 10Gen and outside observers have noted.
Designed as a simple distributed document store, MongoDB was designed to store the complicated application states commonly found in busy online transactional systems. Disney, The New York Times, Eventbrite, Badgeville, Foursquare and other popular Internet services deploy MongoDB to store their user and operational data. Data is stored in the JSON (JavaScript Object Notation) data interchange format.
The new aggregation framework adds additional MongoDB queries, allowing more data processing to be done by MongoDB itself, which could be a time saver.
"If I want to compute an average sales price from all the objects inside a terabyte of data, the alternative would be to extract a terabyte of data into my application and construct the average myself," Rosoff said. "With the application framework, I can construct a pipeline that will run the inside the database and I'll get back an average. I don't need to transfer a terabyte of data."
The new operators will allow developers to sort and aggregate queried data into different groups and run operations against this data. A new set of mathematical expressions can add, subtract, multiply and perform other simple calculations. A set of logical operators can create user-defined computed fields. Other expressions can work on strings and date and time data. The framework provides a Unix-like pipes capability, which developers and administrators can use to build a chains of commands to filter and sort data results.
- Google I/O 2013's Coolest Products and Services
- 10 Star Trek Technologies That are Almost Here
- 19 Generations of Computer Programmers
- 25 Must-Have Technologies for SMBs
- A walking tour: 33 questions to ask about your company's security
- 15 social media scams
- The 7 elements of a successful security awareness program
- IT Certification Study Tips
- Register for this Computerworld Insider Study Tip guide and gain access to hundreds of premium content articles, cheat sheets, product reviews and more.
- Intelligent Systems: A Prescription for Health Care Transformation Facing an onslaught of regulatory changes and market pressures, health care providers are grappling with how to transform existing services as part of...
- Agile Computing: The Path to Strategic Agility Financial institutions globally are facing increasing regulatory requirements while operating in a more competitive environment. Learn how to leverage technology to transform your...
- Time Savings and Ease of Deployment Comparison Study - Database Appliance vs Microsoft SQL Server As the amount and importance of corporate data grows, companies of all sizes are finding that they increasingly need to deploy high-availability database...
- Best Practices for Cloud-based Information Governance This paper explores the latest ideas on evaluating cloud deployment: public or private clouds, data location and privacy, data ownership and access, and...
- Oracle Database Appliance Best Practices Business users increasingly demand 24x7 availability of their data while IT departments face the challenge of ensuring maximum availability while operating with limited...
-
Oracle Database Appliance - Simplifying your High Availability Database
Date: February 29, 2012
Time: 1:00 PM EST
Seasoned IT managers know from experience that in many cases the bulk of the cost of an...
All Databases White Papers |
Webcasts