pingcap / pingcap/tiflash

Don't store table schema locally by using schema.sql

Open
#7,311 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/enhancement
Dominant language
C++
Stars
1k
Forks
423
Avg merge
1d 15h
Merged PRs (30d)
24

Description

Enhancement

Currently, TiFlash cache all tables' schema locally, and persist the information to disk by using a schema.sql file. It is inefficient and unnecessary. Because not all tables have TiFlash replicas on a single TiFlash node.

Contributor guide

No contributing guide indexed for this repository

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 locating TiFlash's schema.sql persistence and the code that decides which table schemas are cached on a node. Clarify how TiFlash replicas are identified, then define completion as avoiding local persistence of schemas for tables without replicas while preserving schemas that the node needs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.