# Data Analysis design Approved specification: [QQQ docs/DATA-ANALYSIS.md](https://github.com/QRun-IO/qqq/blob/develop/docs/DATA-ANALYSIS.md), introduced in [PR #1137](https://github.com/QRun-IO/qqq/pull/1137). Data Analysis will provide profiles, pivots, comparisons, relationships and anomaly watches on existing QQQ data. It will push supported computation to the backend, use bounded streamed fallbacks, enforce the viewer’s permissions and privacy limits, and store configuration, saved definitions, schedules and run history in ordinary visible tables. This repository phase supplies those tables, permissions, configuration, PostgreSQL schema generation and an Analyses home with real session-scoped counts; analytical computation and delivery are planned. ## Phases (spec §11) | Phase | Repo(s) | Deliverable | |---|---|---| | spec | qqq | this document | | repo | qbit-data-analysis | repo standard, scaffold, producer, config, tables, permissions | | a | qqq | §3: operators, buckets, capabilities, streamed fallback, sampling, feature-permission hook; memory + RDBMS (Postgres via Testcontainers, H2) | | b | qbit, Next, (qbit-authentik) | §4 profiles + drill-through + runs/cache + §8 endpoints for them; column-header action and profile panel; authentik catalog FEATURE action | | c | qbit, Next | §5 pivot explorer | | d | qbit, Next | §6 compare, shift, correlation, crosstab | | e | qbit | §7.6 watches and alerts | | f | qbit, Next | §7 saved, stars, schedules, widgets, Analyses home, export |