Mongo Metadaten

The <dbname>.system.* namespaces in MongoDB are special and contain database system information.  System collections include:

  • system.namespaces lists all namespaces.
  • system.indexes lists all indexes.
  • Additional namespace / index metadata exists in the database.ns files, and is opaque.
  • system.profile stores database profiling information.
  • system.users lists users who may access the database.
  • local.sources stores replica slave configuration data and state.
  • Information on the structure of a stored object is stored within the object itself.  See BSON .

There are several restrictions on manipulation of objects in the system collections. Inserting in system.indexes adds an index, but otherwise that table is immutable (the special drop index command updates it for you). system.users is modifiable.  system.profile is droppable.

Note: $ is a reserved character. Do not use it in namespace names or within field names. Internal collections for indexes use the $ character in their names. These collection store b-tree bucket data and are not in BSON format (thus direct querying is not possible).


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

IF YOU HAVE A QUESTION, POST IT TO THE USER GROUP.

These pages are fine for comments, but for questions, your best bet will always be the MongoDB User Group.

blog comments powered by Disqus