This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Row order policy

1 - Row order policy

Learn how to use the row order policy to order rows in an extent.

The row order policy sets the preferred arrangement of rows within an extent. The policy is optional and set at the table level.

The main purpose of the policy is to improve the performance of queries that are narrowed to a small subset of values in ordered columns. Additionally, it may contribute to improvements in compression.

Use management commands to alter, alter-merge delete, or show the row order policy for a table.

When to set the policy

It’s appropriate to set the policy under the following conditions:

  • Most queries filter on specific values of a certain large-dimension column, such as an “application ID” or a “tenant ID”
  • The data ingested into the table is unlikely to be preordered according to this column

Performance considerations

There are no hardcoded limits set on the amount of columns, or sort keys, that can be defined as part of the policy. However, every additional column adds some overhead to the ingestion process, and as more columns are added, the effective return diminishes.