oceanbase / oceanbase/miniob

Use 'bitmap node' to support more pages

Open
#341 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
C++
Stars
4.4k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Enhancement
Currently, the max page cnt of a file is about 65,000. It is limited by ths size of BPFileHeader::bitmap.
Shall we use the bitmap node:

struct BitmapNode {
PageNum prev;
PageNum next;
char bitmap[0];
}

to support Infinite number of pages ?

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

No file or test is named. Start by locating BPFileHeader::bitmap and the proposed BitmapNode, then trace how page metadata is allocated, persisted, and read; done should include support for files exceeding the current roughly 65,000-page limit without breaking existing page handling.

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.