To illustrate how RavenDB uses existing temporary indexes, we will recall the Query<Country>()
method we created in the previous section. Also we will create another query using the same parameter, which will use the same temporary index. Then you will analyze the RavenDB logs in the RavenDB prompt window and visualize the Management Studio Indexes screen.
Open RavenDB Management Studio, select the Indexes tab of the
World
database and ensure thatTemp/Countries/ByArea_RangeSortByArea
index exists. If not, follow all the steps of the previous section to create the temporary index.Open the
RavenDB_Ch04
solution.Add the following code snippet to the
Main()
method in theProgram
class:Save all the files, build and run the solution.
Open the RavenDB prompt window and analyze the RavenDB logs.
In Management Studio, select the
World
database and click on the Indexes tab to display the Indexes screen and verify that there are no new temporary indexes...