This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: can load files > 1GB into postgres (#159)
**Summary**: Can now load files \> 1GB in size by chunking files into 2MB chunks for `COPY FROM STDIN`. **Demo**: JOB's `cast_info.csv` is 1.3GB and has 36244344 rows (image 1). All 36244344 are loaded successfully (image 2). ![Screenshot 2024-04-14 at 18 06 22](https://github.com/cmu-db/optd/assets/20631215/c97c6649-548e-488a-ae6f-a0f9c458044a) ![Screenshot 2024-04-14 at 18 06 36](https://github.com/cmu-db/optd/assets/20631215/99967024-5631-4e53-a2e1-c7f0088da1f2) **Details**: * Postgres does not allow statements that exceed 1GB in size. Since we previously sent the entire file in a single statement, this caused Postgres to cancel the transaction. * This is fixed by chunking files into 2MB chunks and doing a separate `COPY FROM STDIN` statement for each. * We also solved another issue in the meantime: we can now load files that would not fit in memory.
- Loading branch information
1 parent
9380a7f
commit a332018
Showing
12 changed files
with
304 additions
and
162 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mod benchmark; | ||
pub mod benchmark; | ||
pub mod cardtest; | ||
mod datafusion_dbms; | ||
pub mod job; | ||
|
Oops, something went wrong.