element-hq / mautrix-telegram

A Matrix-Telegram hybrid puppeting/relaybot bridge
https://matrix.to/#/#telegram:maunium.net
GNU Affero General Public License v3.0
14 stars 6 forks source link

Add index to speed up heavy query made by `Message.find_recent` #54

Closed AndrewFerr closed 1 year ago

AndrewFerr commented 1 year ago

This should optimize a heavy query on these columns added by 026c39a.

This also merges another index-creating PR that didn't make it into a release yet.

AndrewFerr commented 1 year ago

Replacing with #55 to 1) effectively squash all of my prior index attempts away, and 2) change the branch name.