Comments (8)
Thanks @tooptoop4 and @aborruso
Also I would note, xsv
is well-known for speed; there is no assertion that Miller will outperform it for speed ...
from miller.
Indeed @aborruso I should have mentioned -- the example is quite sufficient -- thank you! :)
from miller.
Hi @johnkerl, using the new release - 6.12.0 - I have had no errors.
The processing time was 12:45.40 total.
from miller.
@tooptoop4 how many columns does the 5GB CSV have? (Also, if possible, can you link to the CSV file itself? No worries if not, but it'd be helpful).
The reason I ask about column-count is #1507 which will be in the next Miller release (6.12).
from miller.
Hi @johnkerl I have made a test using this big CSV https://opencoesione.gov.it/media/open_data//progetti_esteso_20231231.zip
QSV
time qsv select -d ";" OC_COD_CICLO progetti_esteso_20231231.csv > cut_qsv.csv
3.988 total, using qsv 0.123
Miller
time mlr --csv --ifs ";" --from progetti_esteso_20231231.csv cut -f OC_COD_CICLO >cut_mlr.csv
I have [2] 119700 killed
, after 2:15.86 total, using mlr 6.11.0
duckdb
time duckdb --csv -c "select OC_COD_CICLO from read_csv('progetti_esteso_20231231.csv',delim=';')" >cut_duckdb.csv
1.382 total, using v0.10.0 20b1486d11
from miller.
1.382 total, using v0.10.0 20b1486d11
This is not a time to consider. Also duckdb fails and does not extract all 1977163 rows. Now I investigate further.
from miller.
In duckdb 0.10 there was this bug. It has been closed, but is not available in the compiled stable version.
I redid everything using duckbd pre version via python - pip3 install duckdb --pre --upgrade
- and I have the right output in 1.6 seconds, using 0.10.1-dev1037.
import duckdb
import time # Importa il modulo time
start_time = time.time()
query = """
COPY (select OC_COD_CICLO from read_csv('progetti_esteso_20231231.csv',delim=';')) to 'cut_duckdb.csv'
"""
duckdb.query(query)
end_time = time.time()
execution_time = end_time - start_time
print("Tempo di esecuzione: {:.2f} secondi".format(execution_time))
from miller.
John I know, I love Miller, it is too comfortable, it is brilliant.
It is for me the best.
You were asking for an example and I included one that I am working with these days.
from miller.
Related Issues (20)
- More than one blank line at the end of CSV file: automate cleanup? HOT 4
- Feature request: NO_COLOR standard implementation HOT 1
- Error in `splita`/`splitax` when field contains a single non-string value HOT 4
- Applying multiple filter operations into a single run HOT 2
- Correct syntax for filtering multiple values on a single column HOT 14
- Simplifying a filter where many strings in column need to be kept HOT 7
- prepipe does not work with filenames with spaces combined with file masks HOT 1
- json_stringify/json_parse roundtrip not idempotent; json_stringify output not valid ASCII/UTF-8 HOT 1
- spaces can exist in filter-specified column names, but not functions like is_empty HOT 2
- RS aliases for ASCII top-of-table control characters are misnamed
- Just wanted to thank you for this project HOT 1
- Different behavior of `null_count` when using regex field selector HOT 2
- sort-within-records and regex: it seems not work HOT 2
- feature request: add sorting option in reshape long to wide transformation HOT 1
- [feature request] Reuse the format arguments
- [feature request] User-defined booleans (and special values) HOT 3
- miller evaluates all records even when not needed HOT 5
- Addressing staticchecks HOT 1
- [Doc] Doc errors / improvements HOT 2
- Attempting to parse DKVP with `--irs $'\n\n'` results in no output HOT 3
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 miller.