Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge sqlite check to database check #41535

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Nov 16, 2023

Summary

Merge the SQlite setup check into the already existing supported database check.

Checklist

@come-nc come-nc added the 2. developing Work in progress label Nov 16, 2023
@come-nc come-nc self-assigned this Nov 16, 2023
@come-nc come-nc changed the base branch from master to feat/migrate-database-pending-bigint-conversions November 16, 2023 10:51
@come-nc come-nc added this to the Nextcloud 28 milestone Nov 16, 2023
This was referenced Nov 16, 2023
@come-nc come-nc force-pushed the feat/migrate-database-pending-bigint-conversions branch from 73685ec to e3d96ff Compare November 23, 2023 08:38
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@come-nc come-nc force-pushed the feat/migrate-database-pending-bigint-conversions branch from e3d96ff to 60bc97e Compare November 28, 2023 13:08
Base automatically changed from feat/migrate-database-pending-bigint-conversions to master November 28, 2023 15:05
@come-nc come-nc force-pushed the feat/merge-sqlite-check-to-database-check branch from 47bf97f to 09c67c5 Compare November 28, 2023 15:24
@come-nc come-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 28, 2023
@come-nc come-nc marked this pull request as ready for review November 28, 2023 15:25
@come-nc come-nc requested review from a team, ArtificialOwl, icewind1991 and sorbaugh and removed request for a team November 28, 2023 15:28
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc force-pushed the feat/merge-sqlite-check-to-database-check branch from 09c67c5 to 95ea46c Compare December 7, 2023 14:45
@@ -81,7 +83,10 @@ public function run(): SetupResult {
} elseif ($databasePlatform instanceof OraclePlatform) {
$version = 'Oracle';
} elseif ($databasePlatform instanceof SqlitePlatform) {
$version = 'Sqlite';
return SetupResult::warning(
$this->l10n->t('SQLite is currently being used as the backend database. For larger installations we recommend that you switch to a different database backend. This is particularly recommended when using the desktop client for file synchronisation. To migrate to another database use the command line tool: "occ db:convert-type".'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add this warning only if the instance have more than 5 users?
I am thinking about a small arbitrary limit so an admin of a very small instance won't have this warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can, but should we?
One thing that pops to my mind is that if the admin is setting up for a large instance he will have no users at the beginning and this warning will only be seen once growing, and migration can be hard?
But yeah maybe we can always put the same description, but set the status to success/info/warning depending if user number is <=5/>5/>20?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html

SQLite (only recommended for testing and minimal-instances)

I think warning is totally fine for "production" instances. It always can have negative performance impact.
We also warn about int32 when you are alone, not having a memcache (info only), missing indexes, etc.

I think warning against SQLite is totally fine as it's really recommended to go with anything else.

@come-nc come-nc merged commit d21ef3e into master Dec 11, 2023
49 of 50 checks passed
@come-nc come-nc deleted the feat/merge-sqlite-check-to-database-check branch December 11, 2023 14:00
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants