Skip to content

Conversation

Half-Shot
Copy link
Contributor

We were seeing a huge number of queries for

SELECT id, is_registered, displayname, displayname_source, displayname_contact, displayname_quality, disable_updates, 
username, phone, photo_id, avatar_url, name_set, avatar_set, is_bot, is_channel, custom_mxid, access_token, next_batch, 
base_url FROM puppet WHERE custom_mxid=$1

Which we ended up fixing by adding a unique index. This made our DB CPU graph make a happy face.

image

@tulir tulir merged commit e053664 into mautrix:master Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants