Skip to main content
Before you create production streams, use this article to decide whether records are the right CDF service for your data, which default stream template to use, and when to request capacity above the project defaults. To see the limits of each template in your project, list the available templates.

Evaluate whether to use records

Records and streams provide high-performance storage for bulk structured data that lives next to the industrial knowledge graph. Typical examples include logs, events, notifications, archived history, and other append-mostly rows. Not every workload belongs in records. Use the table below to match your data to the right CDF service.

Plan before you create streams

Work through these planning questions before you start large-scale ingestion. Capture your answers in your project’s architecture or capacity documentation. If you can’t answer the lifecycle and volume questions, pause implementation and gather estimates first.
  • Use case. What data are you storing? How is it ingested and consumed?
  • Lifecycle. Are records updated or deleted after the first write?
  • Retention. Do you need data forever, or for a fixed number of years? The retention period is fixed when you create the stream.
  • Volume. How many records per day, month, and year? What is the total over your retention period?
  • Streams. Do you need one stream or several, for example by site, domain, or time window?
  • Fit. Does the workload fit default templates, or do you need a capacity request?

Understand stream limits

A stream template has a fixed set of limits applied when you create a stream. This section explains what each limit means for your design. To see the values for each template in your project, list the available templates.
Request additional capacity before you create the stream. Per-stream limits are fixed at creation and can’t be raised later. If a stream outgrows its template, migrate the data to a new stream with higher limits, then delete the old stream.

Check a stream’s limits and usage

Every stream reports its limits in settings.limits. To see how much of each limit the stream uses, retrieve the stream with includeStatistics=true. Each limit then has a consumed value next to provisioned, and the remaining capacity is the difference. Usage statistics are eventually consistent, so they can lag behind your most recent ingestion. Check usage regularly, for example from a scheduled job, so you can act before a stream reaches a limit and ingestion starts to fail.

Mutability

Immutable streams (ImmutableTestStream, BasicArchive) don’t allow you to update or delete individual records after ingestion. They support higher total record counts and storage volume. Mutable streams (BasicLiveData) allow update and delete. They’re sized as a small, hot working set. The supported production pattern is one BasicLiveData stream per project for data that’s still changing, plus one or more immutable archive streams for archival-state data. When a record reaches its archival state, write it to an immutable archive and delete it from the mutable stream. See Updating records in mutable streams.

Max records and max data volume

Together these cap the size of one stream. Typical industrial records are roughly 600 to 900 bytes (alarms, batch records, and event frames often fall in this range). Record count usually reaches the limit before storage volume. Plan against whichever binds first for your average record size. For example, take a stream capped at 50 million records and 50 GB. A site ingesting 7.3 million alarm records per year (~900 bytes each, ~6.1 GB/year) hits the record cap in about seven years. At that ingest rate, the volume cap would take longer, so record count binds first. Every project starts with the default templates, and Cognite can enable more capacity on request. To see the caps of the templates in your project, list the available templates. For the on-request range, see On-request capacity.

Retention

Retention (dataDeletedAfter) controls when records are automatically hard-deleted. The defaults differ by template: archive streams keep records until you delete the stream, test streams delete records after a short period, and mutable streams have no time-based retention — the record cap bounds mutable storage instead. To see the retention of each template in your project, list the available templates. Retention settings help you keep only relevant data within stream limits. If you require a custom retention policy, request it through your Cognite representative.

Throughput

Throughput is enforced per stream in 10-minute sliding windows. There are separate limits for records ingested, bytes ingested, bytes read, and updates and deletes (mutable streams only). For example, backfilling 45 GB at an ingest limit of 170 MB per 10 minutes takes about 44 hours of continuous ingestion (two days). Keep sustained load below 70% of the ceiling. Bursts and retries can throttle you if you run near the limit continuously. The limits are evaluated over the 10-minute window, but don’t spend the whole allowance in a burst and then idle: a steady request rate gives better performance and predictable throttling than front-loading each window.

Max range filter interval for lastUpdatedTime

Immutable streams require a lastUpdatedTime range on every filter and aggregate request. Each template sets maxFilteringInterval, which is the largest window between gt and lt in one request. For example, with a 365-day interval, each request can cover at most one year. To query a wider span, split your requests into adjacent time windows. See Query time range limits. For mutable streams, lastUpdatedTime is optional on queries. Using it improves query performance.

Max unique properties

The max unique properties limit is the count of distinct property names with data across the entire stream, not per record. Every property that’s ever been written through a container counts toward the limit. If you have three containers, each with 200 properties, the stream uses up to 600 unique properties. To see how many properties a stream uses, see Check a stream’s limits and usage. If you approach the limit, review your schema layout or group rarely queried fields in a JSON property. If you still exceed the limit, contact your Cognite representative to discuss your use case.
The consumed property count does not decrease when you stop writing a property, and deleting a container doesn’t release the slots it consumed. On immutable streams, you also can’t delete individual records to free slots.

Soft-delete retention

When you delete a stream, it enters a soft-deleted state. You can request recovery through Cognite Support within a template-specific window. The stream reports its window in settings.lifecycle.retainedAfterSoftDelete. Restoration is manual and typically takes about 2 weeks after you submit the request, so contact Support as soon as you notice the deletion. Don’t rely on soft-delete as a backup strategy. Projects also limit how many soft-deleted streams you can have at once. See Stream limits per project.

Active streams per project

Each project limits the total number of active streams and the number of active streams per template. For the project-wide defaults, see Stream limits per project. To see the limit for each template, list the available templates. You can use different template types within the total active stream cap. To raise these limits, see Request additional capacity. If you’re considering several streams to work around per-stream limits, discuss the design with Cognite first. Multiple streams add cost and complexity, and you can’t query across streams. In most cases, raising limits on one stream is a better fit than splitting the workload across several smaller streams.

Sizing example: multi-site alarms

A specialty chemical company consolidates DCS alarms from 10 plants: Fit against an immutable template with example caps of 50 million records, 50 GB, and an ingest limit of 170,000 records and 170 MB per 10 minutes: Streams to provision When you request additional capacity, ask for record count, volume, and retention above your projection so the stream has room to grow without another capacity request.

Choose a default template

CDF projects ship with three default stream templates. Your project can include templates besides these defaults. To see the templates your project can use, list the available templates. If none of them fit your workload, request additional capacity. To see the limits of each template in your project, list the available templates. Use the table below to pick the right template after you work through the planning questions.
Immutable streams don’t support updating or deleting individual records. If you switch from BasicLiveData to BasicArchive to gain capacity, pipelines that upsert into the stream fail until you change them to append-only ingestion.

List the templates available in your project

To see the templates your project can create streams from, list the stream templates. The response includes each template’s limits, lifecycle settings, and how many active streams you can create from it. The total active stream limit for the project still applies.

Request additional capacity

Submit a capacity request if your sizing exceeds the per-stream limits of your available templates, you need more active streams than the project default, or you need a retention period the defaults don’t provide. Describe what you need in record count, storage volume in GB, and retention per stream. For the upper range we can provision on request, see On-request capacity. If you chose the wrong template or outgrow a stream, migrate the data to another stream with sufficient capacity and then delete the old stream. See Understand stream limits for why limits can’t be raised after creation. Migration is a client-side process: read the records from the old stream with sync and write them to the new one. To submit a request:
  1. If you have a Cognite Customer Success or Solution Architect contact, send the request to them.
  2. Otherwise, open a Cognite Support request and mention Records / Streams custom capacity.
Routine requests typically take 1 to 2 weeks. Requests that need a new limit configuration may take longer.

Next steps

Last modified on November 16, 2026