openedx / openedx/aspects-dbt

Remove MVs in favor of projections (where possible)

Open
#117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
2
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Many MVs were added to improve the performance of queries, however, some of them can be updated to use projections + a view to do not break existing reports.

Projections are supported on dbt-clickhouse v1.8.2: https://github.com/ClickHouse/dbt-clickhouse/releases/tag/v1.8.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inventorying the materialized views in this dbt project and checking which queries could use ClickHouse projections with a view. Review dbt-clickhouse v1.8.2 projection support, then confirm that each converted report continues to work without the materialized view.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse
Domain
data-engineering, databases
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.