Performance: optimize subscriber database queries - #1318
Conversation
|
Warning Review limit reached
Next review available in: 6 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
0ddbaef to
5d7304e
Compare
4f6c60c to
451693e
Compare
9a39ab3 to
451693e
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
faae925 to
5efe5f5
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
a693248 to
6716233
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Scope
Standalone performance change against
developfor subscriber database reads and WordPress privacy lookups.TL;DR
Moves subscriber pagination totals from full-row hydration to
COUNT(*), and routes WordPress privacy export/erase through the existing indexedemailcolumn rather than a broad substring scan across every subscriber field.Measurement method
MySQL 8.0.35 / PHP 8.3, 100,000-row temporary copy of the real
pum_subscribersschema and indexes. Temporary tables were session-scoped and left the site database unchanged. Timing used 12 warm alternating samples; memory used isolated processes so the full-row baseline did not contaminate the count measurement.emailindex, 1 rowThe count timing is storage-engine dependent; the primary deterministic gain is that PHP no longer transfers, allocates, and retains every matching row merely to count them.
Compatibility
Validation
Testsmatrix andCI - Code Quality: green on the final SHA.git diff --check: passed.develop(git range-diffexact match).