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

Size limit 512 MB #10

Open
k-lukas opened this issue Sep 16, 2018 · 2 comments
Open

Size limit 512 MB #10

k-lukas opened this issue Sep 16, 2018 · 2 comments
Labels
usage The user cannot use the library

Comments

@k-lukas
Copy link
Contributor

k-lukas commented Sep 16, 2018

When my .db file reaches 512 MB, every update/insert query creates an SQL logic error.

@kroggen
Copy link
Member

kroggen commented Sep 16, 2018

Hi!

This is the current default size limit for the db.

You can open the database with the max_db_size parameter, like this:

'file:data.db?branches=on&max_db_size=1073741824'

The size must be a multiple of the OS memory page size.

It is related to the LMDB's mdb_env_set_mapsize function

@kroggen kroggen added the usage The user cannot use the library label Oct 3, 2018
@kroggen
Copy link
Member

kroggen commented Oct 3, 2018

Just for documentation: since commit 8a9446 it will return database or disk is full instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage The user cannot use the library
Projects
None yet
Development

No branches or pull requests

2 participants