> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# table design faq

> Frequently asked questions about table design: troubleshooting table creation, schema changes, partitioning, bucketing, and index configuration.

## Troubleshooting Table Design

This topic provides answers to some frequently asked questions about table design.

## What is the maximum length of the VARCHAR type and how does the length affects query performance?

From StarRocks 4.2 onwards, the maximum length of the VARCHAR type is 2147482624 bytes (2 GiB minus 1 KiB). VARCHAR is a variable-length data type: its data size is based on the actual length of the data, and memory is not pre-allocated based on the declared length. Therefore, specifying a different VARCHAR length when you create a table has little impact on the query performance on the same data. The STRING type is equivalent to VARCHAR(65533).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.