Skip to content
cognitedata avatar

Dm Limits And Best Practices

Reference skill for CDF Data Modeling runtime limits, concurrency control, pagination, batching, and search-versus-filter choices.

CCM score
64 of 100
skills.sh installs
1.9K
GitHub stars
6
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers concurrency limits and 429 avoidance, pagination for instances.list and instances.query, and batching of upsert and in filter operations
  • Includes a QueuedTaskRunner semaphore utility and a global cdfTaskRunner that wraps CDF API calls to cap concurrent requests
  • Guides choosing instances.search with AND or OR for text matching versus exact-match filter for deterministic queries
  • Designed for TypeScript code that calls CDF Data Modeling APIs and needs throughput and reliability guardrails

Install

$ npx -y skills add cognitedata/builder-skills --skill dm-limits-and-best-practices -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CDF Data Modeling: Limits, Concurrency & Best Practices

This is a reference skill. When writing or reviewing code that calls CDF Data Modeling APIs, apply the patterns below.

This skill owns runtime reliability concerns: limits, concurrency, retries, throughput, and batching behavior. For traversal payload correctness and graph-specific failure signatures, see dm-graph-traversal.


DMS Limits Reference

For the latest concurrency limits, resource limits, and property value limits, see the official documentation: https://docs.cognite.com/cdf/dm/dm_reference/dm_limits_and_restrictions

Key things to be aware of:

  • Instance apply, delete, and query operations each have their own concurrent request limits
  • Exceeding these limits returns 429 Too Many Requests
  • Transformations consume a large portion of the concurrency budget, leaving less for other clients
  • instances.list has a max page size (use pagination for complete results)
  • instances.query table expressions each have their own item limit
  • instances.upsert accepts up to 1000 items per call
  • in filters accept at most 1000 values per expression; larger sets must be split into batches

Details

Repository
github.com/cognitedata/builder-skills
Categories
Databases, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the dm-limits-and-best-practices skill cover?

It is a reference skill for CDF Data Modeling API reliability, covering concurrency limits that cause 429 errors, pagination for instances.list and instances.query, batching writes, search versus filter guidance, and the QueuedTaskRunner semaphore. It also covers the cap on LLM calls over query results, with a default of 5 and a maximum of 50.

How do I install the dm-limits-and-best-practices skill?

Run npx -y skills add cognitedata/builder-skills --skill dm-limits-and-best-practices -y in your project. Once installed, the agent can apply the limits, pagination and concurrency patterns when writing or reviewing code that calls CDF Data Modeling APIs.

How do I avoid 429 Too Many Requests errors with the CDF Data Modeling API?

The skill advises wrapping CDF API calls in the global cdfTaskRunner, which limits concurrent requests and prevents 429 errors and deadlocks. It also notes that transformations use much of the concurrency budget, leaving less for other clients.

Where does dm-limits-and-best-practices sit in the Databases category?

It sits in the Databases category on Claude Marketplaces alongside supabase-postgres-best-practices, prisma-client-api, prisma-database-setup, prisma-cli and prisma-postgres. Its focus is CDF Data Modeling runtime reliability rather than general relational database work.

More from cognitedata/builder-skills

All 25

Similar to Dm Limits And Best Practices

More Databases