concept collection in category nosql

This is an excerpt from Manning's book MongoDB in Action, Second Edition: Covers MongoDB version 3.0.
Where relational databases have tables, MongoDB has collections. In other words, MySQL (a popular relational database) keeps its data in tables of rows, while MongoDB keeps its data in collections of documents, which you can think of as a group of documents. Collections are an important concept in MongoDB. The data in a collection is stored to disk, and most queries require you to specify which collection you’d like to target.
In an e-commerce application, you may have multiple collections. Some of these collections may be large, such as a collection storing all user comments, whereas some may be smaller, such as a collection storing all user profiles. In a more complex application such as this, you’d only shard the collections that would benefit from the added capacity of sharding while leaving the smaller collections unsharded for simplicity. Because sharded and unsharded collections can exist in the same system, all of this will work together, completely transparently to the application. In fact, if later you find that one of the collections that didn’t need to be sharded is becoming larger, you can enable sharding at any time.
As before, you can check the config data to see the change you just made. The config database holds a collection called databases that contains a list of databases. Each document specifies the database’s primary shard location and whether it’s partitioned (whether sharding is enabled):
> db.getSiblingDB("config").databases.find() { "_id" : "admin", "partitioned" : false, "primary" : "config" } { "_id" : "cloud-docs", "partitioned" : true, "primary" : "shard-a" }Now all you need to do is shard the spreadsheets collection. When you shard a collection, you define a shard key. Here you’ll use the compound shard key {username: 1, _id: 1} because it’s good for distributing data and makes it easy to view and comprehend chunk ranges:

This is an excerpt from Manning's book Making Sense of NoSQL.
The concept of simple functions in NoSQL systems will be a recurring theme. Don’t be afraid to suggest or use a NoSQL system even if it doesn’t meet all your needs in a single system. As you come to learn more about NoSQL systems, you’ll think of them as collections of tools that become more useful the more you know about how they fit together. Next, we’ll see how the concept of simplicity is important in the development of the application layer with respect to NoSQL applications.
Use an integrated XML IDE such as the Eclipse-based oXygen XML editor with built-in support for a native XML databases to upload a single file or a collection of XML files. The oXygen IDE can be used as a standalone program or as an Eclipse plug-in. Note: oXygen is a commercial product sold by SyncroSoft.
Figure 5.8. Sample XML schema diagram showing how symbols are used to display document structure. In this example, the file shows the structure of a collection of one to many books. Each book has required elements (shown with darker lines, like id and title) as well as optional elements (shown with lighter lines, like description). Some elements, such as author-name, can be repeated, allowing many authors to be associated with a single book. The XML schema elements that have a suffix of code use enumerated values to specify the possible element values. Data types such as decimal can also be specified with each element.
![]()
Filesystems use a folder concept where folders can contain other folders as well as documents. Native XML databases support a similar structure called collection hierarchies, which can contain both XML files and other collections. Using collections to store your documents will make them easier to manage.