Skip to content

perf(mentions): finding a letter by its tracking link - #88

Merged
leemour merged 1 commit into
mainfrom
perf/mail-link-search
Oct 15, 2026
Merged

leemour merged 1 commit into
mainfrom
perf/mail-link-search

Conversation

@leemour

@leemour leemour commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Fifth run on performance/search/mentions: mail search by a whole tracking link (url:) and by a part of a link (link:) on a copy of the owner's store. Totals only.

  • url: 86 ms median, 385 ms slowest, 23 of 23 letters found
  • link: 504 ms median, 861 ms slowest
  • domain: 27 ms median

Feeds the cli-core PR for mail link search.

🤖 Generated with Claude Code

…n a copy of the owner's store

Totals only. url: 86 ms median, link: 504 ms median, every sampled letter found.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour added a commit to WireCatLabs/cli-core that referenced this pull request Oct 15, 2026
…of a link

Mail keeps a tracking link only as its site's origin (url rule version 2), so url:"<link>" found nothing for
it. Now url: also matches a letter with a row of that origin whose body holds the link, as typed or without
utm_*. The new field link: matches a part of a link, any case, in messages (stored links) and in mail (stored
links, and the body of letters that hold a tracking link). No new rows or indexes.

On a copy of the owner's store: url: 86 ms median, link: 504 ms, domain: 27 ms; every sampled letter found
(WireCatLabs/cli-testing#88).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour added a commit to WireCatLabs/cli-core that referenced this pull request Oct 15, 2026
…of a link (#1328)

* feat(search): find a letter by its whole tracking link and by a part of a link

Mail keeps a tracking link only as its site's origin (url rule version 2), so url:"<link>" found nothing for
it. Now url: also matches a letter with a row of that origin whose body holds the link, as typed or without
utm_*. The new field link: matches a part of a link, any case, in messages (stored links) and in mail (stored
links, and the body of letters that hold a tracking link). No new rows or indexes.

On a copy of the owner's store: url: 86 ms median, link: 504 ms, domain: 27 ms; every sampled letter found
(WireCatLabs/cli-testing#88).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(search): mail link search through the query parser; document quoting

link: and url: values must be quoted: ?, / and = are query syntax, and an unquoted value fails with
invalid-syntax. LIKE folds the case of ASCII letters only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@leemour
leemour merged commit 368701b into main Oct 15, 2026
1 check passed
@leemour
leemour deleted the perf/mail-link-search branch October 15, 2026 21:46
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.

1 participant