Store pipeline output in compressed CSVs and read/write them using data.table#308
Open
Store pipeline output in compressed CSVs and read/write them using data.table#308
data.table#308Conversation
Reading and writing uncompressed CSVs is faster (~2x faster) than using data.table with compressed CSVs. So save files we need to read for the dashboard to uncompressed CSV, and predictions cards cache files to compressed CSV.
`fread` is able to read from URLs directly, by first downloading the object to a temp file, but in testing, using `s3read_using(fread...)` was faster than using `fread(...)`.
Collaborator
|
so if I'm reading this right, to test it, I should run |
Collaborator
Author
|
That said, given the difficulties of testing this, I'll run the pipeline in GitHub Actions so that the score files are available in the S3 bucket (won't impact the public dashboard since the new extension makes the score file names different), and you can test the dashboard only. I'll let you know when that's done. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #262
Switch to
csv.gzformat instead of using RDS. CSV is more flexible in what R packages we can use to read/write the files, and in what languages we want to use (e.g. if we want to rewrite the pipeline in Python but keep the dashboard in R).freadonly speeds up the dashboard slightly, but offers the opportunity to use fasterdata.tableprocessing in the future.