# \#fundamentals

**URL:** https://community.cratedb.com/tag/fundamentals/4.md

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

---

## [Maximum High Availability with acceptable data loss](https://community.cratedb.com/t/maximum-high-availability-with-acceptable-data-loss/2149)

<div class="topic-metadata">

**Author:** [@Egor\_Sharin](https://community.cratedb.com/u/Egor_Sharin)\
**Replies:** 2\
**Last updated:** [July 27, 2026, 11:44pm UTC](https://community.cratedb.com/t/maximum-high-availability-with-acceptable-data-loss/2149 "2026-07-27T23:44:01Z")

</div>

Hi, Are there settings which would create a CrateDB cluster with 3 nodes, so that even if 2 nodes go down, the 1 remaining node retains the write (and read) capability? Similarly, for a 5-node cluster, can only 2 nodes…

---

## [Min() and max() functions return null values even if the field contains data](https://community.cratedb.com/t/min-and-max-functions-return-null-values-even-if-the-field-contains-data/2036)

<div class="topic-metadata">

**Author:** [@Jun\_Zhou](https://community.cratedb.com/u/Jun_Zhou)\
**Replies:** 6\
**Last updated:** [June 13, 2025, 1:18pm UTC](https://community.cratedb.com/t/min-and-max-functions-return-null-values-even-if-the-field-contains-data/2036 "2025-06-13T13:18:27Z")

</div>

Hi Team, we have a table metrics that store prometheus data in cratedb 5.10.7, while both the min() and max() functions return null values, even if the field day\_\_generated itself contains data. cr\> select version(); +-…

---

## [Version upgrading : The correct sequence?](https://community.cratedb.com/t/version-upgrading-the-correct-sequence/2032)

<div class="topic-metadata">

**Author:** [@cocoa](https://community.cratedb.com/u/cocoa)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 8:26am UTC](https://community.cratedb.com/t/version-upgrading-the-correct-sequence/2032 "2025-05-23T08:26:47Z")

</div>

I would like to upgrade CrateDB from version 5.6.3 to version 5.10.6. In the recommendations on GitHub I find written in the release notes “We recommend that you upgrade to the latest 5.9 release before moving to 5.10.6…

---

## [Partitioning strategy](https://community.cratedb.com/t/partitioning-strategy/1831)

<div class="topic-metadata">

**Author:** [@bfmcneill](https://community.cratedb.com/u/bfmcneill)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 2:42pm UTC](https://community.cratedb.com/t/partitioning-strategy/1831 "2025-02-06T14:42:22Z")

</div>

Hello, I have ~30 Million records that could be naturally partitioned into months. that would create around36 partitions. I am running crate on a 2 node cluster. each node has 32gb ram and 2 cpu w/ 8 cores per cpu. i…

---

## [Crate python package how to handle geo data?!?](https://community.cratedb.com/t/crate-python-package-how-to-handle-geo-data/1955)

<div class="topic-metadata">

**Author:** [@SchabiDesigns](https://community.cratedb.com/u/SchabiDesigns)\
**Replies:** 2\
**Last updated:** [January 13, 2025, 8:24am UTC](https://community.cratedb.com/t/crate-python-package-how-to-handle-geo-data/1955 "2025-01-13T08:24:36Z")

</div>

Dear Community I have a geopandas dataframe and would like to store it in crateDB. I failed with so many approaches and in the end I just did a simple test: import sqlalchemy as sa import pandas as pd engine = sa.crea…

---

## [How to format output in HTTP endpoint?](https://community.cratedb.com/t/how-to-format-output-in-http-endpoint/1945)

<div class="topic-metadata">

**Author:** [@MirtoBusico](https://community.cratedb.com/u/MirtoBusico)\
**Replies:** 6\
**Last updated:** [January 10, 2025, 8:12pm UTC](https://community.cratedb.com/t/how-to-format-output-in-http-endpoint/1945 "2025-01-10T20:12:33Z")

</div>

Hi all, I’m trying to obtain the same type of output for the HTTP endpoint as in the HTTP endpoint documentation sh$ curl -sS -H 'Content-Type: application/json' \\ ... -X POST '127.0.0.1:4200/\_sql' \\ ... -d '{"stmt":"s…

---

## [Primary key and partitioning fundamentally incompatible?](https://community.cratedb.com/t/primary-key-and-partitioning-fundamentally-incompatible/1908)

<div class="topic-metadata">

**Author:** [@ness](https://community.cratedb.com/u/ness)\
**Replies:** 4\
**Last updated:** [November 27, 2024, 3:20pm UTC](https://community.cratedb.com/t/primary-key-and-partitioning-fundamentally-incompatible/1908 "2024-11-27T15:20:15Z")

</div>

A primary key has high cardinality, so cannot be a partition key. If a primary key is defined, you cannot use any other column as the partition key. You cannot use a generated column (eg (ID % 1000000)) as the partitio…

---

## [Resampling time-series data with DATE\_BIN](https://community.cratedb.com/t/resampling-time-series-data-with-date-bin/1009)

<div class="topic-metadata">

**Author:** [@hammerhead](https://community.cratedb.com/u/hammerhead)\
**Replies:** 5\
**Last updated:** [October 15, 2024, 9:28am UTC](https://community.cratedb.com/t/resampling-time-series-data-with-date-bin/1009 "2024-10-15T09:28:18Z")

</div>

Introduction CrateDB 4.7 adds a new DATE\_BIN function, offering greater flexibility for grouping rows into time buckets. This article will show how to use DATE\_BIN to group rows into time buckets and resample the value…

---

## [Ingest with python asyncpg](https://community.cratedb.com/t/ingest-with-python-asyncpg/1792)

<div class="topic-metadata">

**Author:** [@SchabiDesigns](https://community.cratedb.com/u/SchabiDesigns)\
**Replies:** 7\
**Last updated:** [June 28, 2024, 12:17pm UTC](https://community.cratedb.com/t/ingest-with-python-asyncpg/1792 "2024-06-28T12:17:39Z")

</div>

Hi guys I have some issues to ingest data with python and the asyncpg package. I have a dataframe with following datatypes: int32, datetime64\[ns, UTC\], object, float64, int32 …and want to ingest with: await connectio…

---

## [Sharding and partitioning guide for time-series data](https://community.cratedb.com/t/sharding-and-partitioning-guide-for-time-series-data/737)

<div class="topic-metadata">

**Author:** [@jayeff](https://community.cratedb.com/u/jayeff)\
**Replies:** 0\
**Last updated:** [July 2, 2021, 9:07am UTC](https://community.cratedb.com/t/sharding-and-partitioning-guide-for-time-series-data/737 "2021-07-02T09:07:46Z")

</div>

The goal of this guide is to support you with building a sharding and partitioning strategy for your time series data. Let’s start with your time series data which you want to store in a table in CrateDB. You need to c…

---

## [CrateDB partitioned table vs. TimescaleDB Hypertable](https://community.cratedb.com/t/cratedb-partitioned-table-vs-timescaledb-hypertable/1713)

<div class="topic-metadata">

**Author:** [@Tass](https://community.cratedb.com/u/Tass)\
**Replies:** 4\
**Last updated:** [February 1, 2024, 5:59pm UTC](https://community.cratedb.com/t/cratedb-partitioned-table-vs-timescaledb-hypertable/1713 "2024-02-01T17:59:31Z")

</div>

Hello everyone, I’m starting to discover Crate DB and considering using it in a project where I initially planned to use timescaleDB. This is a very timeserie intensive project, so I went with TimescaleDB which I’m fam…

---

## [Ubuntu installation: network.host failure](https://community.cratedb.com/t/ubuntu-installation-network-host-failure/1703)

<div class="topic-metadata">

**Author:** [@fhasanabadi](https://community.cratedb.com/u/fhasanabadi)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 4:54pm UTC](https://community.cratedb.com/t/ubuntu-installation-network-host-failure/1703 "2024-01-24T16:54:41Z")

</div>

Hi, I’m heading to run CrateDB on a Ubuntu machine, aiming at make it accessible via a virtual network. When I add the network interface name in the crate.yaml file, crate fails with the following logs: How should I a…

---

## [Objects in CrateDB](https://community.cratedb.com/t/objects-in-cratedb/1188)

<div class="topic-metadata">

**Author:** [@rafaelasantana](https://community.cratedb.com/u/rafaelasantana)\
**Replies:** 0\
**Last updated:** [August 8, 2022, 11:59am UTC](https://community.cratedb.com/t/objects-in-cratedb/1188 "2022-08-08T11:59:06Z")

</div>

In this tutorial, you will learn the basics of CrateDB Objects. This tutorial is also available in the video format: CrateDB Video | Fundamentals: Getting Started with CrateDB Objects First, I present a simple use cas…

---

## [COPY FROM using python http module as source .csv](https://community.cratedb.com/t/copy-from-using-python-http-module-as-source-csv/1672)

<div class="topic-metadata">

**Author:** [@bfmcneill](https://community.cratedb.com/u/bfmcneill)\
**Replies:** 7\
**Last updated:** [December 14, 2023, 3:20pm UTC](https://community.cratedb.com/t/copy-from-using-python-http-module-as-source-csv/1672 "2023-12-14T15:20:35Z")

</div>

Hello, I was trying to get COPY FROM using http://192.168.252.1:8000/lr-sql-scada/output\_sqlt\_data\_1\_2017\_11.csv' which is the ip of my host. The CrateDb is running as a shard with docker compose on the same host. I c…

---

## [For cluster building, one node has multiple instances](https://community.cratedb.com/t/for-cluster-building-one-node-has-multiple-instances/1651)

<div class="topic-metadata">

**Author:** [@xyls82](https://community.cratedb.com/u/xyls82)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 4:01pm UTC](https://community.cratedb.com/t/for-cluster-building-one-node-has-multiple-instances/1651 "2023-11-22T16:01:35Z")

</div>

We are using Server node resources CPU 64 cores ,memory 256G ,HDD 100TB A good starting point for the heap space is 25% of the systems memory. However, it shouldn’t be set below 1GB and not above 30.5GB, see the limi…

---

## [Introduction to CrateDB Webinar - November 7](https://community.cratedb.com/t/introduction-to-cratedb-webinar-november-7/1625)

<div class="topic-metadata">

**Author:** [@maria.skvoznova](https://community.cratedb.com/u/maria.skvoznova)\
**Replies:** 0\
**Last updated:** [October 17, 2023, 1:11pm UTC](https://community.cratedb.com/t/introduction-to-cratedb-webinar-november-7/1625 "2023-10-17T13:11:01Z")

</div>

Join us for the upcoming webinar “Introduction to CrateDB: Key Concepts, Architecture, and Live Demo” :sound: Are you interested in the latest trends in the database market? :globe\_with\_meridians: Join our introductory …

---

## [Users, Sign in with authentication](https://community.cratedb.com/t/users-sign-in-with-authentication/1578)

<div class="topic-metadata">

**Author:** [@cocoa](https://community.cratedb.com/u/cocoa)\
**Replies:** 1\
**Last updated:** [September 6, 2023, 7:20am UTC](https://community.cratedb.com/t/users-sign-in-with-authentication/1578 "2023-09-06T07:20:11Z")

</div>

Hello everyone, I would need support on access configuration and security. I have a cluster consisting of three docker conatiners , each running an instance of crateDb on three different hosts. The configuration file …

---

## [Question about BlobContainer.children](https://community.cratedb.com/t/question-about-blobcontainer-children/1499)

<div class="topic-metadata">

**Author:** [@bergwerf](https://community.cratedb.com/u/bergwerf)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 4:36pm UTC](https://community.cratedb.com/t/question-about-blobcontainer-children/1499 "2023-06-23T16:36:28Z")

</div>

Context: I am developing a Google Cloud repository integration for CrateDB. The workings and intended purpose of BlobContainer.children are quite unclear to me. Multiple BlobContainers with a different base path could b…

---

## [CrateDB Workshop - June 28](https://community.cratedb.com/t/cratedb-workshop-june-28/1522)

<div class="topic-metadata">

**Author:** [@alicecrateio](https://community.cratedb.com/u/alicecrateio)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 8:36am UTC](https://community.cratedb.com/t/cratedb-workshop-june-28/1522 "2023-06-23T08:36:33Z")

</div>

CrateDB Workshop is coming soon! June 28th, 2023, from 02:00 to 5:00 pm CET (possibility to join at a specific time, see below) 2023-06-28T12:00:00Z (UTC)→2023-06-28T15:00:00Z (UTC) Who is it for: Data Engineer, Datab…

---

## [Window functions in CrateDB](https://community.cratedb.com/t/window-functions-in-cratedb/1398)

<div class="topic-metadata">

**Author:** [@rafaelasantana](https://community.cratedb.com/u/rafaelasantana)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 12:45pm UTC](https://community.cratedb.com/t/window-functions-in-cratedb/1398 "2023-03-07T12:45:19Z")

</div>

In this tutorial, you will learn how to use window functions in CrateDB. CrateDB is an open-source distributed database designed for scalability and performance. One of the features of CrateDB is its support for windo…

---

## [Fetching large result sets from CrateDB](https://community.cratedb.com/t/fetching-large-result-sets-from-cratedb/1270)

<div class="topic-metadata">

**Author:** [@hernanc](https://community.cratedb.com/u/hernanc)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 2:41pm UTC](https://community.cratedb.com/t/fetching-large-result-sets-from-cratedb/1270 "2022-10-31T14:41:34Z")

</div>

As a distributed database system with support for the standard SQL query language, CrateDB is great to run aggregations server-side, working on huge datasets, and getting summarized results back; there are however case…

---

## [User-Defined Functions in CrateDB](https://community.cratedb.com/t/user-defined-functions-in-cratedb/1218)

<div class="topic-metadata">

**Author:** [@rafaelasantana](https://community.cratedb.com/u/rafaelasantana)\
**Replies:** 0\
**Last updated:** [September 19, 2022, 8:16am UTC](https://community.cratedb.com/t/user-defined-functions-in-cratedb/1218 "2022-09-19T08:16:35Z")

</div>

Watch the tutorial on our Youtube channel! In this tutorial, I will show you how to build your own User-Defined Function step-by-step. If you are struggling with finding the proper function for your database task, t…

---

## [Fundamentals of the COPY FROM statement](https://community.cratedb.com/t/fundamentals-of-the-copy-from-statement/1178)

<div class="topic-metadata">

**Author:** [@Marija](https://community.cratedb.com/u/Marija)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 9:16am UTC](https://community.cratedb.com/t/fundamentals-of-the-copy-from-statement/1178 "2022-07-26T09:16:35Z")

</div>

COPY FROM is a handy command: it allows you to connect CrateDB with a filesystem and import data from local or remote files to a specified table. The syntax is fairly simple: often, you just need to specify the destinati…

---

## [Storing and querying hierarchical data in CrateDB](https://community.cratedb.com/t/storing-and-querying-hierarchical-data-in-cratedb/1147)

<div class="topic-metadata">

**Author:** [@Marija](https://community.cratedb.com/u/Marija)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 8:58am UTC](https://community.cratedb.com/t/storing-and-querying-hierarchical-data-in-cratedb/1147 "2022-06-08T08:58:38Z")

</div>

CrateDB provides a great way to store and query large amounts of data quickly and efficiently. But, how do you store data with hierarchical links between records, such as a file system? In this article, we will look at …

---

## [Interpolating missing time-series values](https://community.cratedb.com/t/interpolating-missing-time-series-values/1010)

<div class="topic-metadata">

**Author:** [@hammerhead](https://community.cratedb.com/u/hammerhead)\
**Replies:** 0\
**Last updated:** [February 11, 2022, 8:55am UTC](https://community.cratedb.com/t/interpolating-missing-time-series-values/1010 "2022-02-11T08:55:02Z")

</div>

This article requires CrateDB \>= 4.7.0. For older CrateDB versions, please refer to a previous version of this article. When dealing with time-series data, you will likely at some point run into the question of how …

---

## [Exploring Blob storage in CrateDB](https://community.cratedb.com/t/exploring-blob-storage-in-cratedb/938)

<div class="topic-metadata">

**Author:** [@jayeff](https://community.cratedb.com/u/jayeff)\
**Replies:** 0\
**Last updated:** [December 13, 2021, 10:13am UTC](https://community.cratedb.com/t/exploring-blob-storage-in-cratedb/938 "2021-12-13T10:13:00Z")

</div>

CrateDB can be used to store binary large objects (Blobs). This allows you to store binary data (e.g. product photos, PDFs, etc) in a table which will be automatically sharded and replicated across your cluster. In thi…

---

## [User-Defined Function collection](https://community.cratedb.com/t/user-defined-function-collection/773)

<div class="topic-metadata">

**Author:** [@jayeff](https://community.cratedb.com/u/jayeff)\
**Replies:** 0\
**Last updated:** [August 9, 2021, 11:52am UTC](https://community.cratedb.com/t/user-defined-function-collection/773 "2021-08-09T11:52:22Z")

</div>

CrateDB supports User-Defined Functions to extend the functionality provided out of the box with custom functionality. Feel free to use these UDFs for your own use case or as a starting point for creating your own UDF…
