soju/doc
delthas 1ccc7ce6d2 Add a database store for messages
This adds a new config option, `logs db`, which enables storing chat
logs in the soju database.

Regular store options, CHATHISTORY options, and SEARCH operations are
supported, like the fs logs backend.

Messages are stored in a new table, Message. In order to track the list
of targets we have messages for in an optimized manner, another database
is used: MessageTarget.

All new requests are backend by indexes so should be fast even with
hundreds of thousands of messages.

A contrib script is provided for migrating existing logs fs chat logs to
the database. It can be run with eg:

  go run ./contrib/migrate-logs/ logs/ sqlite3:soju.db

Co-authored-by: Simon Ser <contact@emersion.fr>
2023-02-17 14:13:43 +01:00
..
ext Add support for draft/read-marker 2022-07-01 13:33:28 +02:00
architecture.md doc/architecture: ring buffers are now per-channel 2020-04-17 18:29:49 +02:00
getting-started.md sojuctl: rename to sojudb 2023-02-06 15:15:09 +01:00
per-user-ip.md doc/per-user-ip: new documentation article 2021-11-17 18:04:14 +01:00
soju.1.scd Add a database store for messages 2023-02-17 14:13:43 +01:00