Skip to content

How to enable storage in memory to enable compression? #1470

Closed Answered by candux
candux asked this question in Q&A
Discussion options

You must be logged in to vote

I found the solution. Just create a new database and use it :)

ATTACH DATABASE 'duckdb' as mydb;
use mydb;

Now all new tables will use compression. This works great and I can now import much bigger tables. The Memory-Consumption of a very sparse table went down from 2.3GB to only about 400MB (memory + database size)!

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@thrmagic
Comment options

@nshiab
Comment options

Answer selected by candux
Comment options

You must be logged in to vote
3 replies
@thrmagic
Comment options

@nshiab
Comment options

@thrmagic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants