Comments (3)
https://ursalabs.org/blog/2019-10-columnar-perf/
from slfhelper.
I looked into this today and it's definitely promising. The write times (on PWB) were super slow to make a parquet file, I partitioned it by hscp2018.
Rough results
- The total space usage is about 50% greater than fst but I think that's fine. - Possibly this could be improved with better compression settings.
- The read speed of a full file is marginally slower than fst, as is the read speed for variable selections.
- The memory usage is absolutely tiny compared to fst on everything I checked.
- The huge advantage comes when filtering on things which we filtered, so reading in a single partnerships data was much faster than with fst. The trick here will be to pick the partitions well so that we capture most use cases!
- The other big advantage is we could return an apache dataset, where the user could do more manipulation using
dplyr
before finally callingcollect()
, we could make this optional and if the user doesn't want it, just do thecollect()
behind the scenes.
from slfhelper.
Public-Health-Scotland/R-Resources/blob/master/posit_workbench_writing_and_reading_data.md Also relevant - apparently the parquet files should read about as fast as fst (ignoring the other benefits) but will write much faster as for some reason writing fst on PWB is super slow.
from slfhelper.
Related Issues (20)
- Update to new variables HOT 1
- Update / fix to work with dplyr 1+
- Simplify selection code
- Add check to year(s)
- Add dev switch to allow using the in-development files on sourcedev
- Allow filtering on Health Board
- Create variable groups
- Use snapshot testing for checking state of loaded files
- Do a check on `columns` `recids` `partnerships` etc. before submitting
- Look into chunking on read file
- Include and expose value and variable labels HOT 1
- Supress warning from fst on load
- Add filter for missing CHI
- Force returning some variables in certain cases
- Do a better job of checking the supplied `year` is valid
- Do a better job of checking the supplied `year` is valid
- More documentation and examples
- hms::as_hms() function slow down the reading of slf files HOT 1
- Tidyselect helpers don't work in `col_select`
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 slfhelper.