aboutsummaryrefslogtreecommitdiffstats
path: root/alembic/env.py (unfollow)
Commit message (Collapse)AuthorLines
2024-06-30Add debug performance logs for in_guild syncGravatar Chris Lovering-2/+17
2024-06-30Improve user in_guild sync query time by only loading the id columnGravatar Chris Lovering-1/+4
This means the other, larger, columns do not need to be deserialised, bringing the query time down from 7.4s down to 3.5s. I couldn't simply do select(models.User.id) here, as we need the full User object in order to mutate and update it later inthe process.
2024-06-30Improve user in-guild sync processGravatar Chris Lovering-6/+15
Previously we set all users in_guild to False, and relied on users being set back to in_guild when iterating through guild.members However, this caused two problems 1. For a short window a users in_guild status was incorrect 2. It required an update for all users in_guild to be sent to postgres to update in_guild back to True. This diff changes that, so instead only users who are not found in the guild have in_guild set to False. The bottleneck for this query is the number of users that are currently in_guild=False. Testing locally, with 360k users off guild, this took 7.4s to query out, and 0.5s to process & 15.1 s to commit.
2024-06-30Add dependabot config for docker & CIGravatar Chris Lovering-0/+18
2024-06-30Bump dependencies to latestGravatar Chris Lovering-83/+83
2024-06-30Bump ruff from 0.4.9 to 0.5.0 (#164)Gravatar dependabot[bot]-20/+21
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.9 to 0.5.0. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.4.9...0.5.0) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18Bump version to 2.6.2v2.6.2Gravatar Chris Lovering-1/+1
2024-06-18Don't use uninstalled poetry script to start up the appGravatar Chris Lovering-7/+2
2024-06-18Don't install dev dependencies in the docker imageGravatar Chris Lovering-2/+2