Skip to main content

 

ThoughtSpot

Data loading too slowly

Overview

Explains what the feature is or what its benefits are to the user or customer.

Feature

Some tables may take an unusually long time to load due to a high data version issue. This issue normally arises when ThoughtSpot completes an upgrade or the system is recovering after a crash.

The data version is the number of loads that have been historically applied to a table. Every completed load increments the version number of the table by one. ThoughtSpot would need to process each version of the table during restoration, which could increase the time it takes to build the table.

There are a few steps you can take to check for a high data version issue and fix it. To improve data loading speed:

  1. Run the following command to find the number of tables that are building and their names
    tscli cluster status --mode table
  2. You may notice that a few small tables are taking up a lot of time to be built. However, this could simply be due to the deceivingly large size of the table. There is also the chance it could be due to a high data version issue. In order to determine if this is a high data version issue, check the size of the table by running the following command:
    echo 'show statistics for server;' | tql
  3. If there is a large number of rows in the table, proceed to shard the table.
  4. If the table has a small number of rows, then the slow loading speed is caused by a high data version issue, and you do not have to shard the table. Use the compact table functionality to trim the table down to its actual size:
    tql> compact table <table name>;
  • Was this article helpful?