---
title: "Estimate memory usage for an upsert table"
method: POST
path: "/upsert/estimateHeapUsage"
tags: ["Upsert"]
---

# Estimate memory usage for an upsert table

`POST /upsert/estimateHeapUsage`

This API returns the estimated heap usage based on primary key column stats. This allows us to estimate table size before onboarding.

## Query parameters

- `cardinality` integer, required
- `primaryKeySize` integer
- `numPartitions` integer

## Request body

- string

## Response `200`

successful operation

- string

---

[API](https://skmtc.net/startree/apis/pinot-controller-api.md) · [All operations](https://skmtc.net/startree/apis/pinot-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/startree/pinot-controller-api/revisions/f1cc8a0ba2e0/schema)
