# \#data-storage

**URL:** https://community.cratedb.com/tag/data-storage/12.md

[Latest](https://community.cratedb.com/latest.md) · [Categories](https://community.cratedb.com/categories.md) · [Tags](https://community.cratedb.com/tags.md)

---

## [Setting Azure blob storage as snapshot repository for CrateDB](https://community.cratedb.com/t/setting-azure-blob-storage-as-snapshot-repository-for-cratedb/695)

<div class="topic-metadata">

**Author:** [@proddata](https://community.cratedb.com/u/proddata)\
**Replies:** 2\
**Last updated:** [June 9, 2026, 9:26am UTC](https://community.cratedb.com/t/setting-azure-blob-storage-as-snapshot-repository-for-cratedb/695 "2026-06-09T09:26:55Z")

</div>

Create a new Storage Account in Microsoft Azure Create a new Container in the Storage Account Get you Access keys for the Container (Security + networking \> Access Keys) In your CrateDB Cluster create a new repository Y…

---

## [What are the best practices for managing blob's metadata?](https://community.cratedb.com/t/what-are-the-best-practices-for-managing-blobs-metadata/1947)

<div class="topic-metadata">

**Author:** [@MirtoBusico](https://community.cratedb.com/u/MirtoBusico)\
**Replies:** 3\
**Last updated:** [December 15, 2025, 7:55am UTC](https://community.cratedb.com/t/what-are-the-best-practices-for-managing-blobs-metadata/1947 "2025-12-15T07:55:56Z")

</div>

Hi all, before going too far on the wrong way I need some advices on how to manage metadata related to blobs. If I understand correctly the documentation, the blob only queryable fields are digest and last\_modified col…

---

## [CrateDB supports restore snapshot in different version cluster?](https://community.cratedb.com/t/cratedb-supports-restore-snapshot-in-different-version-cluster/2015)

<div class="topic-metadata">

**Author:** [@Jun\_Zhou](https://community.cratedb.com/u/Jun_Zhou)\
**Replies:** 2\
**Last updated:** [March 27, 2025, 8:04am UTC](https://community.cratedb.com/t/cratedb-supports-restore-snapshot-in-different-version-cluster/2015 "2025-03-27T08:04:13Z")

</div>

Hi, I created snapshot in CrateDB 5.5.2 and I also created new cluster of CrateDB 5.10.3, can I restore the snapshot to 5.10.3 CrateDB?

---

## [Couldn't decrease number of shards for table](https://community.cratedb.com/t/couldnt-decrease-number-of-shards-for-table/2014)

<div class="topic-metadata">

**Author:** [@Jun\_Zhou](https://community.cratedb.com/u/Jun_Zhou)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 8:33am UTC](https://community.cratedb.com/t/couldnt-decrease-number-of-shards-for-table/2014 "2025-03-26T08:33:46Z")

</div>

I’m using CrateDB 5.10.3 and I want decrease the number of shards for some tables, while getting below error. cr\> SET GLOBAL PERSISTENT "cluster.max\_shards\_per\_node" = '1500'; SET OK, 1 row affected (0.078 sec) cr\> ALTE…

---

## [Advanced downsampling with the LTTB algorithm](https://community.cratedb.com/t/advanced-downsampling-with-the-lttb-algorithm/1287)

<div class="topic-metadata">

**Author:** [@hernanc](https://community.cratedb.com/u/hernanc)\
**Replies:** 0\
**Last updated:** [November 10, 2022, 10:48am UTC](https://community.cratedb.com/t/advanced-downsampling-with-the-lttb-algorithm/1287 "2022-11-10T10:48:36Z")

</div>

Introduction Downsampling is the process of transforming data, reducing its resolution so that it requires less space, while preserving some of its basic characteristics so that it is still usable. There are a number …

---

## [Removal of \_doc in 5.10.0 version](https://community.cratedb.com/t/removal-of-doc-in-5-10-0-version/1976)

<div class="topic-metadata">

**Author:** [@Snehal\_Jadhav](https://community.cratedb.com/u/Snehal_Jadhav)\
**Replies:** 1\
**Last updated:** [March 4, 2025, 2:31pm UTC](https://community.cratedb.com/t/removal-of-doc-in-5-10-0-version/1976 "2025-03-04T14:31:10Z")

</div>

I have a table with defination as follows : CREATE TABLE users ( id INT PRIMARY KEY, name STRING, age INT ); I have 2 records in it. The count(\_doc) for users table is also 2. As per latest release doc, \_d…

---

## [“HTTP/1.1 307 Temporary Redirect” error when uploading a blob](https://community.cratedb.com/t/http-1-1-307-temporary-redirect-error-when-uploading-a-blob/1944)

<div class="topic-metadata">

**Author:** [@MirtoBusico](https://community.cratedb.com/u/MirtoBusico)\
**Replies:** 6\
**Last updated:** [January 4, 2025, 1:18pm UTC](https://community.cratedb.com/t/http-1-1-307-temporary-redirect-error-when-uploading-a-blob/1944 "2025-01-04T13:18:54Z")

</div>

Hi all, when I try to upload a file (in this case a .pdf) sometimes I receive the error HTTP/1.1 307 Temporary Redirect I tried to upload a .png file and an .mp4 file without errors. Then I tried with another .pdf …

---

## [Panic: restarting the kubernetes cluster loses all blobs but retains the doc tables](https://community.cratedb.com/t/panic-restarting-the-kubernetes-cluster-loses-all-blobs-but-retains-the-doc-tables/1941)

<div class="topic-metadata">

**Author:** [@MirtoBusico](https://community.cratedb.com/u/MirtoBusico)\
**Replies:** 8\
**Last updated:** [December 31, 2024, 1:05pm UTC](https://community.cratedb.com/t/panic-restarting-the-kubernetes-cluster-loses-all-blobs-but-retains-the-doc-tables/1941 "2024-12-31T13:05:48Z")

</div>

Hi all, in my home-lab I’m using CrateDB installed in kubernetes using the crate-operator. I created a blob table and uploaded three files: sysop@h5a-dev:~/h5a/software/pcams/storehouse/cratedb/attachments$ crash --ve…

---

## [Disk Space Allocation Concerns with Longhorn](https://community.cratedb.com/t/disk-space-allocation-concerns-with-longhorn/1915)

<div class="topic-metadata">

**Author:** [@MirtoBusico](https://community.cratedb.com/u/MirtoBusico)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 8:24pm UTC](https://community.cratedb.com/t/disk-space-allocation-concerns-with-longhorn/1915 "2024-12-03T20:24:55Z")

</div>

Hi all, I’ve setup CrateDB using the crate-operator on a K3S cluster using Longhorn storage. I have some concerns about the disk allocation. I defined a debug disk of 4GB and a data disk of 16GB. This on a 3 node Crat…

---

## [Using crate-operator the installation fails with "AttachVolume.Attach failed for volume"](https://community.cratedb.com/t/using-crate-operator-the-installation-fails-with-attachvolume-attach-failed-for-volume/1909)

<div class="topic-metadata">

**Author:** [@MirtoBusico](https://community.cratedb.com/u/MirtoBusico)\
**Replies:** 6\
**Last updated:** [November 30, 2024, 6:30pm UTC](https://community.cratedb.com/t/using-crate-operator-the-installation-fails-with-attachvolume-attach-failed-for-volume/1909 "2024-11-30T18:30:56Z")

</div>

Hi all, I’m trying to install CrateDB using crate-operator; but the installation fails giving the same error on every PV created: 32s Warning FailedAttachVolume pod/crate-data-hot-my-cluster-1 …

---

## [Issue while inserting data with a string value greater than 32kb](https://community.cratedb.com/t/issue-while-inserting-data-with-a-string-value-greater-than-32kb/1900)

<div class="topic-metadata">

**Author:** [@Snehal\_Jadhav](https://community.cratedb.com/u/Snehal_Jadhav)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 2:15pm UTC](https://community.cratedb.com/t/issue-while-inserting-data-with-a-string-value-greater-than-32kb/1900 "2024-11-13T14:15:04Z")

</div>

We have created a table with defination 'create table TestLargeData ( id long, name string, primary key (name,id ) ) WITH ( “translog.durability” = ‘ASYNC’ ); ’ When size of name string is greater than 32kb,the …

---

## [How to import csv file which contains into table which have json columns](https://community.cratedb.com/t/how-to-import-csv-file-which-contains-into-table-which-have-json-columns/1870)

<div class="topic-metadata">

**Author:** [@sushilr007](https://community.cratedb.com/u/sushilr007)\
**Replies:** 0\
**Last updated:** [October 1, 2024, 11:28am UTC](https://community.cratedb.com/t/how-to-import-csv-file-which-contains-into-table-which-have-json-columns/1870 "2024-10-01T11:28:33Z")

</div>

I am trying to import csv data in table using below command COPY table1(col1,col2,col3) from 'file:///home/tab.csv' WITH (format= 'csv' , delimiter = ',') RETURN SUMMARY; I am not getting any kind of error but in col3 i…

---

## [How add partitions to existing table?](https://community.cratedb.com/t/how-add-partitions-to-existing-table/1820)

<div class="topic-metadata">

**Author:** [@cocoa](https://community.cratedb.com/u/cocoa)\
**Replies:** 7\
**Last updated:** [July 27, 2024, 8:03am UTC](https://community.cratedb.com/t/how-add-partitions-to-existing-table/1820 "2024-07-27T08:03:44Z")

</div>

Hello everyone, I have a table created with this configuration : schema table\_name num\_shards num\_reps c\_b p\_b blobs\_path mars data\_log 6 2 \_id NULL NULL I would like to bring the number of replicas to 4 and…

---

## [ Help Needed: Storing Binary Files and Metadata in CrateDB Using NiFi](https://community.cratedb.com/t/help-needed-storing-binary-files-and-metadata-in-cratedb-using-nifi/1798)

<div class="topic-metadata">

**Author:** [@d\_user](https://community.cratedb.com/u/d_user)\
**Replies:** 1\
**Last updated:** [July 9, 2024, 1:50pm UTC](https://community.cratedb.com/t/help-needed-storing-binary-files-and-metadata-in-cratedb-using-nifi/1798 "2024-07-09T13:50:56Z")

</div>

Hello, I have a few days of experience with CrateDB and NiFi. I would like to transfer a binary file (such as an image, video, or Excel file) using NiFi to CrateDB. I am unsure how to create the appropriate objects in C…

---

## [Query partition size from table](https://community.cratedb.com/t/query-partition-size-from-table/1785)

<div class="topic-metadata">

**Author:** [@SchabiDesigns](https://community.cratedb.com/u/SchabiDesigns)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 3:31pm UTC](https://community.cratedb.com/t/query-partition-size-from-table/1785 "2024-06-13T15:31:40Z")

</div>

Hi Community Is there a way to get the size of a partition within a table? I would like to start a new partition when the size exceed a certain amount of space. Regards

---

## [Cluster with integral and independent replicas](https://community.cratedb.com/t/cluster-with-integral-and-independent-replicas/1674)

<div class="topic-metadata">

**Author:** [@cocoa](https://community.cratedb.com/u/cocoa)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 9:16am UTC](https://community.cratedb.com/t/cluster-with-integral-and-independent-replicas/1674 "2023-12-18T09:16:14Z")

</div>

Hi, I need help to understand how to handle this situation : I have a cluster of three CrateDB nodes that run on three different hosts, such as docker containers. I thought I had an exact replica of the db on each no…

---

## [Setting AWS S3 object storage as snapshot repository for CrateDB](https://community.cratedb.com/t/setting-aws-s3-object-storage-as-snapshot-repository-for-cratedb/1603)

<div class="topic-metadata">

**Author:** [@amotl](https://community.cratedb.com/u/amotl)\
**Replies:** 0\
**Last updated:** [March 28, 2023, 10:00pm UTC](https://community.cratedb.com/t/setting-aws-s3-object-storage-as-snapshot-repository-for-cratedb/1603 "2023-03-28T22:00:00Z")

</div>

Sign up for an AWS account: Prerequisite: Setting up Amazon S3 - Amazon Simple Storage Service Create an S3 bucket: Step 1: Create your first S3 bucket - Amazon Simple Storage Service For configuring the reposito…

---

## [Optimizing storage for historic time-series data](https://community.cratedb.com/t/optimizing-storage-for-historic-time-series-data/762)

<div class="topic-metadata">

**Author:** [@hammerhead](https://community.cratedb.com/u/hammerhead)\
**Replies:** 10\
**Last updated:** [June 22, 2022, 9:31am UTC](https://community.cratedb.com/t/optimizing-storage-for-historic-time-series-data/762 "2022-06-22T09:31:04Z")

</div>

When dealing with time-series data, performance is crucial. Data that gets ingested should be available quickly for querying. To enable fast decision-making, analytical queries often need to return results in a fractio…

---

## [Guide to decrease the number of shards in your cluster](https://community.cratedb.com/t/guide-to-decrease-the-number-of-shards-in-your-cluster/873)

<div class="topic-metadata">

**Author:** [@jayeff](https://community.cratedb.com/u/jayeff)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 3:39pm UTC](https://community.cratedb.com/t/guide-to-decrease-the-number-of-shards-in-your-cluster/873 "2022-06-03T15:39:39Z")

</div>

Potentially you created your tables with too many shards and want to rectify this situation. Some indications for too many shards can be: you have many small shards with typical shard sizes being below 5GB, or you ha…

---

## [Building a hot and cold storage data retention policy in CrateDB with Apache Airflow](https://community.cratedb.com/t/building-a-hot-and-cold-storage-data-retention-policy-in-cratedb-with-apache-airflow/934)

<div class="topic-metadata">

**Author:** [@hammerhead](https://community.cratedb.com/u/hammerhead)\
**Replies:** 4\
**Last updated:** [May 11, 2022, 12:47pm UTC](https://community.cratedb.com/t/building-a-hot-and-cold-storage-data-retention-policy-in-cratedb-with-apache-airflow/934 "2022-05-11T12:47:55Z")

</div>

In this fourth article on automating recurrent CrateDB queries with Apache Airflow, we will present a second strategy for implementing a data retention policy. Previously, we shared the Data Retention Delete DAG, which…

---

## [Setting MinIO as a CrateDB backup repository](https://community.cratedb.com/t/setting-minio-as-a-cratedb-backup-repository/833)

<div class="topic-metadata">

**Author:** [@romanas667](https://community.cratedb.com/u/romanas667)\
**Replies:** 3\
**Last updated:** [December 21, 2021, 1:58pm UTC](https://community.cratedb.com/t/setting-minio-as-a-cratedb-backup-repository/833 "2021-12-21T13:58:56Z")

</div>

MinIO is a popular s3-compatible storage server, that can also be used as a CrateDB backup repository. Configuring MinIO for your backups is generally as straightforward as AWS S3, except for a couple of small details. …

---

## [Implementing a data retention policy in CrateDB using Apache Airflow](https://community.cratedb.com/t/implementing-a-data-retention-policy-in-cratedb-using-apache-airflow/913)

<div class="topic-metadata">

**Author:** [@Marija](https://community.cratedb.com/u/Marija)\
**Replies:** 0\
**Last updated:** [November 25, 2021, 10:17am UTC](https://community.cratedb.com/t/implementing-a-data-retention-policy-in-cratedb-using-apache-airflow/913 "2021-11-25T10:17:55Z")

</div>

Written by Niklas Schmidtmer and Marija Selakovic What is a Data Retention Policy? A data retention policy describes the practice of storing and managing data for a designated period of time. Once a data set completes…
