Skip to content

small perf wins - #67

Merged
mmattbtw merged 15 commits into
teal-fm:mainfrom
isabelroses:small-perf-wins
Jul 11, 2026
Merged

small perf wins#67
mmattbtw merged 15 commits into
teal-fm:mainfrom
isabelroses:small-perf-wins

Conversation

@isabelroses

Copy link
Copy Markdown
Contributor

i ripped some of my hair out on this one

Also log expired-key deletion errors properly instead of an
unconditional fmt.Println with a %w verb.
Retried submissions re-saved every track in the payload; on the
production instance one stuck client created 310k duplicate rows.
MusicBrainz lookups are rate limited to 1/s, so hydrating before
responding could outlast the nginx proxy timeout; clients never got
a 2xx and retried the same payload forever (all-502/504 in nginx).
Save synchronously, then hydrate and submit to the PDS detached
from the request context.
@mmattbtw

mmattbtw commented Jul 4, 2026

Copy link
Copy Markdown
Member

@codex review

@mmattbtw

mmattbtw commented Jul 4, 2026

Copy link
Copy Markdown
Member

(i'll manually review later)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4c403e5665

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread db/db.go

@espeon espeon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, ty for the extra modularization and db pruning 🙂‍↕️

if tests pass i'll merge it so @mmattbtw if you want to look through it again do it soon

@mmattbtw mmattbtw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mmattbtw
mmattbtw merged commit f766806 into teal-fm:main Jul 11, 2026
1 check passed
@isabelroses
isabelroses deleted the small-perf-wins branch July 11, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants