Comments (1)
In the tutorial, the file organized in the form of several pages, every page could be an internal node or an leaf node, so when the program starts, it loads the file descriptor into memory and in the program there is a struct named Pager
to store all the page pointers, when you want to get a page(like when you execute select
), if the pointer is null, it means never load the page before, so it allocate some memory to store the page, and if not null, it means you load it before, so it just return the page address.
So I think the author opened the file, but didn't load all the data into memory at once.
from db_tutorial.
Related Issues (20)
- How do you fix errors about the getline function HOT 2
- Part 5: page_num out of bounds HOT 1
- a
- No definition of right child.
- No definition of root.
- Update Leaf node split and insert
- Failure/Error: pipe.puts commands Errno::EPIPE: Broken pipe HOT 1
- is there a rust edition of the database? HOT 3
- pager_open function optimization
- Regarding uint8_t in node header definition HOT 1
- translate to zh HOT 6
- Unreadable website HOT 4
- Part1: compilation error: implicit declaration of function 'getline' HOT 1
- Is there possibility of having overflow ?
- Can i continue this awesome project, dear cstack? HOT 1
- 这个是不是没有去实现事物处理等相关功能更? HOT 1
- Bug with internal_node_key()
- Could not get the code compiled... HOT 2
- Will the series continue? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db_tutorial.