Open ChristophWurst opened 2 weeks ago
Efficient database operations
SELECT COUNT (*) FROM `oc_talk_invitations` WHERE (`user_id` = ?) AND (`state` = ?)
not using an index.
Looking at https://github.com/nextcloud/spreed/blob/38bfcad79113a110084789db21e93cbaed668627/lib/Model/InvitationMapper.php#L71-L100 it seems like an index on (user_id, state) would be a good candidate.
Talk app version: (see apps administration page: /index.php/settings/apps)
/index.php/settings/apps
Custom Signaling server configured: yes/no and version (see Talk administration settings: /index.php/settings/admin/talk#signaling_server)
/index.php/settings/admin/talk#signaling_server
Custom TURN server configured: yes/no (see Talk administration settings: /index.php/settings/admin/talk#turn_server)
/index.php/settings/admin/talk#turn_server
Custom STUN server configured: yes/no (see Talk administration settings: /index.php/settings/admin/talk#stun_server)
/index.php/settings/admin/talk#stun_server
Microphone available: yes/no
Camera available: yes/no
Operating system: Windows/Ubuntu/Mac/...
Browser name: Firefox/Chrome/Safari/...
Browser version: 124/125/...
Operating system: Ubuntu/RedHat/...
Web server: Apache/Nginx
Database: MySQL/Maria/SQLite/PostgreSQL
PHP version: 8.1/8.2/8.3
Nextcloud Version: (see administration page)
List of activated apps:
Nextcloud configuration:
Query ID 805953543f46cc758e6b0239a23b8bfd
yeah it's more important now that we don't delete invites when they got accepted. This was not the case in the beginning
How to use GitHub
Steps to reproduce
Expected behaviour
Efficient database operations
Actual behaviour
not using an index.
Looking at https://github.com/nextcloud/spreed/blob/38bfcad79113a110084789db21e93cbaed668627/lib/Model/InvitationMapper.php#L71-L100 it seems like an index on (user_id, state) would be a good candidate.
Talk app
Talk app version: (see apps administration page:
/index.php/settings/apps
)Custom Signaling server configured: yes/no and version (see Talk administration settings:
/index.php/settings/admin/talk#signaling_server
)Custom TURN server configured: yes/no (see Talk administration settings:
/index.php/settings/admin/talk#turn_server
)Custom STUN server configured: yes/no (see Talk administration settings:
/index.php/settings/admin/talk#stun_server
)Browser
Microphone available: yes/no
Camera available: yes/no
Operating system: Windows/Ubuntu/Mac/...
Browser name: Firefox/Chrome/Safari/...
Browser version: 124/125/...
Browser log
Server configuration
Operating system: Ubuntu/RedHat/...
Web server: Apache/Nginx
Database: MySQL/Maria/SQLite/PostgreSQL
PHP version: 8.1/8.2/8.3
Nextcloud Version: (see administration page)
List of activated apps:
Nextcloud configuration:
Server log (data/nextcloud.log)
Query ID 805953543f46cc758e6b0239a23b8bfd