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

Setting memory database size limit #860

Open
gatecrasher777 opened this issue Aug 8, 2022 · 1 comment
Open

Setting memory database size limit #860

gatecrasher777 opened this issue Aug 8, 2022 · 1 comment
Labels

Comments

@gatecrasher777
Copy link

From sqlite.org:

SQLITE_MEMDB_DEFAULT_MAXSIZE=N

Set the default size limit (in bytes) for in-memory databases created using sqlite3_deserialize(). This is just the default. The limit can be changed at start-time using sqlite3_config(SQLITE_CONFIG_MEMDB_MAXSIZE,N) or at run-time for individual databases using the SQLITE_FCNTL_SIZE_LIMIT file-control. If no default is specified, 1073741824 is used.

Is there a way to set this limit for a specific database in better-sqlite3 other than by compiling a customized sqlite3 version?

@JoshuaWise
Copy link
Member

Currently, the only way to change this setting is by compiling a customized sqlite3 version.

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

No branches or pull requests

2 participants