Replies: 1 comment
-
Tmp file is for simplicity and is a temporary solution. By using tmp file, we can reuse some old code. It does cause redundent write and read from disk. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why tmp_file is needed before persistence? I don't see any reason to use the tmp files, which seems like a redundant step.
If we write the data from BufferObj.file_worked_ into memory and then persist them directly without tmp_file, we can reduce the reading and writing from tmp files to obj.
infinity/src/storage/buffer/file_worker/file_worker.cpp
Lines 43 to 73 in 861c142
Beta Was this translation helpful? Give feedback.
All reactions