Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Duckdb memory consumption #1127

Open
dsmilkov opened this issue Jan 25, 2024 · 2 comments
Open

Reduce Duckdb memory consumption #1127

dsmilkov opened this issue Jan 25, 2024 · 2 comments
Assignees

Comments

@dsmilkov
Copy link
Collaborator

In the short term, we should have a single global db connection that can make unique view names for each dataset, and read multiple database files using ATTACH: https://duckdb.org/docs/sql/statements/attach.html

This will hopefully help with minimizing any caching that duckdb does for each different connection.

@dsmilkov
Copy link
Collaborator Author

it should also speedup opening new datasets

@brilee
Copy link
Contributor

brilee commented Jan 30, 2024

https://duckdb.org/2024/01/26/multi-database-support-in-duckdb.html as per this recent blog post, a solution may be to construct a postgres cache table to take advantage of postgres's stronger on-disk index support, instead of relying on duckdb's indexing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants