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

How to pre-expand when using the in-memory database mode? #1288

Open
big-mulberry opened this issue May 11, 2024 · 2 comments
Open

How to pre-expand when using the in-memory database mode? #1288

big-mulberry opened this issue May 11, 2024 · 2 comments
Labels

Comments

@big-mulberry
Copy link

When I'm inserting data in memory mode, I frequently encounter page faults, which significantly impacts performance.
Is there a way to pre-expand memory, allocating a certain size of memory space in advance?
Currently, there are six tables, and a total of 300 double variables will be inserted within 1 millisecond.

@fnc12
Copy link
Owner

fnc12 commented May 11, 2024

hi @big-mulberry . The answer depends on how you would do this with raw SQLite cause it is more SQLite related question not sqlite_orm related question

@fnc12 fnc12 added the question label May 11, 2024
@big-mulberry
Copy link
Author

@fnc12 Thank you for your suggestion. I will go figure it out.

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

No branches or pull requests

2 participants