dwyl / dwyl/learn-postgresql

About SQLite : running :memory:

Open
#101 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
346
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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.
`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.