# Switching Database Index Type

The UpdateFactTableSchema command in the Analysis Server Console application includes a switching capability. Columnstore indexes are used for analytical workloads, while rowstore indexes are utilized for transactional workloads. The default index type used by Open iT is the rowstore. This guide provides instructions on how to switch between columnstore and rowstore index types in Open iT.

# Switching to Columnstore

You can switch to columnstore by using the /columnstore command. Passing /uncompress will apply PAGE or COLUMNSTORE_ARCHIVE compression to columnstore.

To switch to columnstore index, follow these instructions:

  1. Open the command prompt and run the following command to go to the installation directory of Analysis Server, which is by default in C:\Program Files\OpeniT\Analysis Server\.

    Example
    cd "C:\Program Files\OpeniT\Analysis Server\"

  2. Once in the directory, run the following command:

    Example
    OpeniT.Server.Etl.Console.exe UpdateFactTableSchema /columnstore /uncompress [/tables:number[+number]] [/timeout:number] [/truncate]
    Example
    OpeniT.Server.Etl.Console.exe UpdateFactTableSchema /columnstore /uncompress /tables:75+93+94+95+102 /timeout:60 /truncate

  3. The Console Application will display information messages in the command prompt. Allow the process to finish.


  4. To reclaim the true storage size of the database, use the instructions in the Microsoft Learn article on How to Shrink Database.

# Switching to Rowstore

You can switch to rowstore by using the /rowstore command. Passing /compress will apply PAGE or COLUMNSTORE_ARCHIVE compression to rowstore.

To switch to rowstore index, follow these instructions:

  1. Open the command prompt and run the following command to go to the installation directory of Analysis Server, which is by default in C:\Program Files\OpeniT\Analysis Server\.

    cd "C:\Program Files\OpeniT\Analysis Server\"

  2. Once in the directory, run the following command:

    Example
    OpeniT.Server.Etl.Console.exe UpdateFactTableSchema /rowstore /compress [/tables:number[+number]] [/timeout:number] [/truncate]
    Example
    OpeniT.Server.Etl.Console.exe UpdateFactTableSchema /rowstore /compress /tables:75+93+94+95+102 /timeout:60 /truncate

  3. The Console Application will display information messages in the command prompt. Allow the process to finish.

# Recommended Reading

The following article can help you understand the usage of the command and other parameters for UpdateFactTableSchema.

   Using Analysis Server Console Application - UpdateFactTableSchema

We value your feedback!

Please take a few minutes to complete our survey and share your thoughts on your recent experience with our documentation.

Take survey

Close