is it safe to cluster an airbyte destination table
# ask-ai
a
is it safe to cluster an airbyte destination table
k
Yes, it is generally safe to cluster an Airbyte destination table. In fact, clustering is a recommended practice for improving query performance, especially for large datasets. For example, in the context of BigQuery, Airbyte often clusters tables by fields such as _airbyte_extracted_at to optimize incremental sync queries and reduce costs. Clustering can significantly improve the efficiency of queries that filter or aggregate on the clustered columns, and Airbyte's default behavior leverages this for better performance. However, you should be aware of the implications of clustering keys. For example, in Snowflake, you cannot drop a column that is part of a clustering key, which may affect schema evolution if your syncs require dropping such columns. This is a limitation of the destination database, not Airbyte itself, but it's important to consider when designing your schema and clustering strategy [Destination Snowflake Cannot drop column '_AIRBYTE_UNIQUE_KEY' which belongs to a clustering key](https://github.com/airbytehq/airbyte/issues/17655). In summary, clustering is safe and often beneficial, but always consider the specific behaviors and limitations of your destination database regarding clustering keys.
a
in BigQuery, airbyte partitions by extracted at, but i want to also partition by currency column, how do i it
@kapa.ai in BigQuery, airbyte partitions by extracted at, but i want to also partition by currency column, how do i it
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain information about configuring Airbyte's BigQuery destination to partition by a custom column such as currency in addition to (or instead of) the default _airbyte_extracted_at or _airbyte_generation_id fields. There are user requests and discussions about allowing more flexible partitioning options, such as choosing between _airbyte_extracted_at and _airbyte_generation_id, but currently, there is no documented way to partition by arbitrary columns like currency via Airbyte's configuration [Destination BigQuery: add the ability to partition by _airbyte_extracted_at](https://github.com/airbytehq/airbyte/discussions/53198). If this feature is critical for your use case, you may need to implement a post-processing step outside of Airbyte to repartition your tables in BigQuery after the sync, or follow ongoing feature requests for updates on this capability.