-
So I have a
Is there something inherent in how the driver works that would cause some global mutex or something to be shared? From what I'm seeing its actually 45% slower sustained and that doesn't make sense to me. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What are the options you're passing to
EDIT: This ended up being unnecessary use of the shared cache flag on opening. See below replies for details. |
Beta Was this translation helpful? Give feedback.
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.