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

Can db size large then 1~2 gigabyte? #73

Closed
happydentist opened this issue Aug 7, 2021 · 2 comments
Closed

Can db size large then 1~2 gigabyte? #73

happydentist opened this issue Aug 7, 2021 · 2 comments
Labels
question Help request

Comments

@happydentist
Copy link

I have a sqlite3 database and its size is 1~2 GB, when I drop in sqliteviz and it can not load the db.
I can open this db with DB Browser For Sqlite.
What happen!

@saaj
Copy link
Contributor

saaj commented Aug 7, 2021

Can db size large then 1~2 gigabyte?

The short answer is "no".

A longer answer is that sql.js (which is a WebAssembly build of SQLite running in a browser) loads whole database in browser's RAM because it doesn't have a filesystem access (where you normally expect SQLite to persist a database).

However, neither sqliteviz nor sql.js limit the memory allocated for the database -- it's your browser that does that. For Chromium the limit seems to be about 2 GiB per tab, but can be increased with max_old_space_size flag to 4 GiB (see this StackOverflow question). For Firefox I couldn't quickly find the limit. So the point is that playing with browsers and flags you can increase the limit, but not significantly.

Documentation is clearly lacking in that regards, and if you're going to experiment how far you can get it, your measurements would be helpful know.

Another answer is #51.

@happydentist
Copy link
Author

Thanks!

@lana-k lana-k added the question Help request label Aug 18, 2021
@lana-k lana-k closed this as completed Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Help request
Projects
None yet
Development

No branches or pull requests

3 participants