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

About SQLite : running :memory: #101

Open
ndrean opened this issue Feb 25, 2023 · 0 comments
Open

About SQLite : running :memory: #101

ndrean opened this issue Feb 25, 2023 · 0 comments

Comments

@ndrean
Copy link

ndrean commented Feb 25, 2023

Good to know!

Running Repo.start_link(database: ":memory:", default_chunk_size: 100) will use the default pool size where each database connection in the pool will open its own in memory database.

If you want to use an in memory database, you'll need to crank the pool size down to 1. I don't recommend doing that right now for application code because you'll have to migrate / load a structure everytime the connection is opened.

When you use any other value for the database name, it's just using that value as the path to the database from the application directory.
`

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

1 participant