docs: explain the optional dedicated activity database#2550
Merged
miaulalala merged 1 commit intomasterfrom May 5, 2026
Merged
docs: explain the optional dedicated activity database#2550miaulalala merged 1 commit intomasterfrom
miaulalala merged 1 commit intomasterfrom
Conversation
Activity
|
||||||||||||||||||||||||||||
| Project |
Activity
|
| Branch Review |
docs/dedicated-db-config
|
| Run status |
|
| Run duration | 02m 12s |
| Commit |
|
| Committer | Frank Karlitschek |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
1
|
|
|
0
|
|
|
9
|
| View all changes introduced in this branch ↗︎ | |
The Activity app already supports an `activity_db*`-prefixed connection
that the AppInfo registers via `ConnectionFactory::createConnectionParams('activity_')`,
falling back to the main Nextcloud DB when none of the keys are set.
The behaviour is undocumented outside the source, which makes admins
nervous about touching it on busy installations where the activity
table grows fastest.
Add `docs/database.md` covering:
- when a dedicated connection is worth the operational cost,
- the full set of `activity_db*` config keys with types/defaults,
including driver options and persistent-connection toggle,
- a worked `config.php` example for "same engine, separate host",
- a TLS driver-options snippet for MySQL,
- migration, backup and troubleshooting notes.
Link the new doc from the README under a new "Administration" section.
Signed-off-by: Frank Karlitschek <frank@nextcloud.com>
63e3bd2 to
2a6a248
Compare
miaulalala
approved these changes
May 5, 2026
Collaborator
miaulalala
left a comment
There was a problem hiding this comment.
Also added the config options to the sample config: nextcloud/server#59911
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Activity app already supports an
activity_db*-prefixed connection that the AppInfo registers viaConnectionFactory::createConnectionParams('activity_'), falling back to the main Nextcloud DB when none of the keys are set. The behaviour is undocumented outside the source, which makes admins nervous about touching it on busy installations where the activity table grows fastest.Add
docs/database.mdcovering:activity_db*config keys with types/defaults, including driver options and persistent-connection toggle,config.phpexample for "same engine, separate host",Link the new doc from the README under a new "Administration" section.