- RavenDB 2.x Beginner's Guide
- Khaled Tannir
- 457字
- 2025-04-04 22:27:50
Introducing the RavenDB Management Studio
The RavenDB Management Studio that comes with RavenDB is a Silverlight based application which is used to manage the RavenDB server. It is a very useful tool to look at the server databases and the activity logs to understand what's going on at the server-side. With the Management Studio, we can create new databases and new documents; we can modify data directly if we need to. Also, when using RavenDB, this will be very handy in debugging and application development.
The main Management Studio user interface has a few different tabs on the top: Documents, Collections, Indexes, Patch, Alerts, and Logs. We can use these tabs to access the different screens and manage different parts of the database server. There is a New button list; by clicking on the arrow of the New button, there are several options shown such as: create a new Document, create a new Index, or create a new Dynamic Query. On selecting and clicking on one of these options, the respective screen page for each option is shown.
The Management Studio provides a search box feature which lets you go directly to a document stored in a collection and display it in the edit mode. It also provides the Export feature which can be used to export all the documents/queries for a given database to a CSV format. Also, it is possible to export all documents and indexes in a JSON format to be able to import them to another database or as backup.
Note
The Export feature is available in the Documents, Collections, and Index Query Results views and it is context sensitive:
- In the Documents view, it will export all documents in the database
- In the Collections view, it will only export the documents found in that collection
- In the Index Query Results view, it will export the documents matching the query
At the top-right corner of the Management Studio graphical interface, we have a colored dot that represents the status of the RavenDB sever. The red color indicates that the server is offline and the green one indicates that the server is online.
The status-bar at the bottom of the Management Studio displays the RavenDB server statistics such as how many documents are stored, how many indexes, triggers, errors, and tasks. Also, in status-bar we have the information about the RavenDB server Build number and the client Build number.
The Management Studio is opened automatically when RavenDB server is launched using the Start.cmd
file. To open it manually after the server is running, you can browse the URL that RavenDB is listed to. By default RavenDB is listening on port 8080
. So, it can be opened with you Internet browser using this URL: http://localhost:8080/raven/studio.html
.