[Bug]: Admin overview itself significantly increases Select_full_join
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- mariadb, sql
- Lĩnh vực
- databases, observability
Hướng nghiên cứu
Start with the schema inspection queries the reporter captured in the slow query log, which join information_schema.TABLES, COLUMNS, key_column_usage and referential_constraints. Reproduce by reading the global Select_full_join counter before and after opening the Administration Overview, then decide how the health check should exclude or account for its own queries. Done means the warning no longer rises from opening the page, and the maintainers agree on the approach, since the issue offers two alternatives.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
Admin overview itself significantly increases Select_full_join
Description
The Nextcloud Administration Overview reports:
Joins without indexes
WarningSelect_full_join
Some joins are scanning entire tables because no usable index exists on the join column.
While investigating this warning, I observed that opening the Nextcloud Administration Overview itself significantly increases MariaDB's global Select_full_join counter.
Reproduction
Immediately before opening the Administration Overview:
Select_full_join | 75
After opening the Administration Overview exactly once:
Select_full_join | 87
A single execution of the Administration Overview therefore increased Select_full_join by 12.
Additional investigation
occ db:add-missing-indices completes without reporting or adding any missing Nextcloud indexes.
For further analysis, I temporarily enabled:
slow_query_log = ON
log_queries_not_using_indexes = ON
During a 10-minute test, Select_full_join increased from 47 to 74.
The slow query log contained several schema inspection queries executed by Nextcloud against information_schema, including joins involving:
information_schema.TABLES
information_schema.COLUMNS
information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
information_schema.key_column_usage
information_schema.referential_constraints
Several of these schema inspection queries were executed repeatedly while accessing the Administration Overview.
Impact
On a lightly used Nextcloud instance, the Select_full_join health check appears to influence the metric it evaluates:
- Opening the Administration Overview executes database schema inspection queries.
- These queries appear to increase MariaDB's global
Select_full_joincounter. - The Administration Overview evaluates this global counter.
- The health check itself may therefore contribute to the warning being displayed.
After approximately 47 hours of uptime, my instance showed:
Select_full_join = 47
Questions = 160371
This corresponds to approximately 0.029%.
Opening the Administration Overview once subsequently increased Select_full_join by another 12.
Expected behavior
Queries executed as part of the Administration Overview / health checks should ideally not materially influence the database metric used to determine the health-check result.
Alternatively, the health check could account for its own database inspection queries when evaluating Select_full_join.
Environment
- Nextcloud: 34.0.1
- MariaDB: 11.8.6
- OS: Debian 13 (x86_64)
- Database backend: MariaDB
occ db:add-missing-indices: no missing indexes reported
Steps to reproduce
Expected behavior
Queries executed as part of the Administration Overview / health checks should ideally not materially influence the database metric used to determine the health-check result.
Alternatively, the health check could account for its own database inspection queries when evaluating Select_full_join.
Nextcloud Server version
35
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.5
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 31 to 32)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
- Ngôn ngữ chính
- JavaScript
- Star
- 133
- Fork
- 67
- Merge trung bình
- 21 giờ 28 phút
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/serverinfo
-
0. Needs triage bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
nextcloud/serverinfo#1266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Database checks: ∞% reported as Failing when counter is zero; no way to acknowledge/mute a checkĐang mở0. Needs triage bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
nextcloud/serverinfo#1231 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
nextcloud/serverinfo#1248 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
1. to develop bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
nextcloud/serverinfo#1224 · 6 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
nextcloud/serverinfo#1223 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/serverinfo
Issue tương tự
-
clientV2: Application Info header separators show as missing-character boxes without a CJK fontĐang mởbug new-client
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
NUWCDIVNPT/stig-manager#2285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Fei2411/DeepSeek-Bot#922 · 1 reaction ·
-
api: Coach job tests fail on Windows (fixture CLI path built with URL.pathname)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
DuarteSantos8/openGym#998 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
server errored
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
OpenTermsArchive/contrib-declarations#4273 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-area-label
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 2 ngày