Use 'bitmap node' to support more pages
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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