Skip to content

Mutliple databases open slow down #28

Answered by zombiezen
delaneyj asked this question in Q&A

You must be logged in to vote

What are the options you're passing to sqlite.OpenConn? And are these connections to different database files or the same database? Broadly speaking, each *sqlite.Conn is intended to be used by a single goroutine, so it doesn't need to synchronize. However, SQLite does use file-level locking, see:

EDIT: This ended up being unnecessary use of the shared cache flag on opening. See below replies for details.

Replies: 1 comment 4 replies

You must be logged in to vote
4 replies
@delaneyj

@zombiezen

@delaneyj

@delaneyj

Answer selected by zombiezen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #27 on September 18, 2021 04:00.