Limitations

Current limits of the ClickHouse warehouse.

Protocol and SQL

  • HTTPS on port 443 only. No native TCP. No Postgres wire protocol. No Redshift SQL.
  • Functions, types, and JOIN behaviour follow ClickHouse. A query copied from Redshift may need a rewrite even when the table and column names match.
  • The default database is pennylane. etl is for incremental loads. practice_management is the firm portfolio. Who can open it, and which rows come back, is on Practice management.

Quotas

Two layers apply to every u_* user. A client can set a lower limit. It cannot raise these. A ClickHouse error comes back as HTTP 500, with the code in the body. The proxy answers 429 or 504 before ClickHouse. There is no cap on rows read or bytes read.

Per user

Quota data_sharing_client, keyed by user_name, one-hour window. Settings profile of the same name.

Parameter Maximum Error
max_threads 1 452 SETTING_CONSTRAINT_VIOLATION
max_execution_time 1,800 seconds (30 minutes) HTTP 504. The proxy kills the query.
max_memory_usage 21,474,836,480 bytes (20 GiB) 241 MEMORY_LIMIT_EXCEEDED
max_memory_usage_for_user 21,474,836,480 bytes (20 GiB) 241 MEMORY_LIMIT_EXCEEDED
max_bytes_before_external_group_by 2,147,483,648 bytes (2 GiB) Not an error. GROUP BY spills to disk.
max_bytes_before_external_sort 2,147,483,648 bytes (2 GiB) Not an error. ORDER BY spills to disk.
max_concurrent_queries_for_user 3 202 TOO_MANY_SIMULTANEOUS_QUERIES
queries 600 per hour 201 QUOTA_EXCEEDED
execution_time 7,200 seconds per hour 201 QUOTA_EXCEEDED

All users

HTTP proxy cap, shared by every u_*.

Parameter Maximum Error
max_concurrent_queries 500 HTTP 429
max_queue_size 1,000 HTTP 429
max_queue_time 60 seconds HTTP 429
requests_per_minute 3,000 HTTP 429
max_execution_time 30 minutes HTTP 504

Identical queries can be served from cache for 15 minutes, up to 32 MB. Two identical queries in flight share one execution for up to 5 minutes.

Deletions

  • pennylane does not return deleted rows and has no deleted_at.
  • etl.deleted_at is set for rows deleted in the source stream.
  • A company-level filter (draft, archived, missing company, deleted company) removes the row with no deleted_at. Downstream jobs must drop children when the company disappears from etl.companies.

Columns

Every column returned to a Data Sharing user is documented on the table page, in English and in French.

Freshness

Data is available within 2 hours of the change in Pennylane. That is the freshness SLA.

Creating the user can still take a few hours. That delay is separate from table freshness.


Back to top