Comments (1)
Depending on the content of the data, csvq will require at least 10 times more memory allocation than the target file size to keep all the data in memory at runtime.
Can you check if your system's RAM and virtual memory have enough space to handle the file? If not, it is probably difficult to solve the problem and you should look for another way than csvq.
The actual amount of memory required to handle the data can be estimated by cutting the data to a size that can be processed and then running the same query with the --stats
option.
$ head -n 1000000 foo.csv > bar.csv
$ csvq --stats 'SELECT COUNT(*) FROM `bar.csv`'
+----------+
| COUNT(*) |
+----------+
| 999999 |
+----------+
Query Execution Time: 0.818470 seconds
Resource Statistics
---------------------------------
TotalTime: 0.818675 seconds
TotalAlloc: 351,134,832 bytes
HeapSys: 334,561,280 bytes
Mallocs: 10,002,885 objects
Frees: 2,769,768 objects
HeapSys
is the amount of memory required on the system for the execution of the query.
from csvq.
Related Issues (20)
- Please bump golang.org/x/sys dependency HOT 2
- Can it replace the H2 database engine? HOT 15
- Use custom function to Transform input/ insert/ update and Parse read using custom function before running sql query HOT 1
- Insert rewrites valid escaped entries wrong HOT 2
- index out of range error when doing GROUP BY on empty table HOT 1
- Support fully qualified file names in CREATE TABLE and INSERT commands HOT 3
- odd negative sign in modulo results HOT 7
- not static binary? HOT 1
- Column update from one Table to another based on a ID match HOT 2
- Issue with GROUP BY and alias HOT 6
- --stats, -x should perhaps go to STDERR HOT 2
- Resolution of Total Time (--stats) unnecessarily precise
- Add --lazy-quotes option to be on par with go package encoding/csv reader
- How to set stdout to not escape content? HOT 4
- terminal navigation: supporting more common key combinations HOT 2
- Error when operate a huge CSV file.
- Pivot table function HOT 1
- Support columns with dot in the name HOT 1
- Support insert with multiple rows HOT 3
- Support textile output HOT 1
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 csvq.