mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
11 lines
484 B
Markdown
11 lines
484 B
Markdown
|
|
# Litestream lightweight read-replicas
|
||
|
|
|
||
|
|
This package implements the **EXPERIMENTAL** `"litestream"` SQLite VFS
|
||
|
|
that offers Litestream [lightweight read-replicas](https://fly.io/blog/litestream-revamped/#lightweight-read-replicas).
|
||
|
|
|
||
|
|
See the [example](vfs_test.go) for how to use.
|
||
|
|
|
||
|
|
To improve performance,
|
||
|
|
increase `PollInterval` (and `MinLevel`) as much as you can,
|
||
|
|
and set [`PRAGMA cache_size=N`](https://www.sqlite.org/pragma.html#pragma_cache_size)
|
||
|
|
(or use `_pragma=cache_size(N)`).
|