Skip to content

perf(records): add in-process caches and benchmark tooling - #601

Open
zzacharo wants to merge 1 commit into
masterfrom
perf-improv
Open

zzacharo wants to merge 1 commit into
masterfrom
perf-improv

Conversation

@zzacharo

Copy link
Copy Markdown
Contributor

Cache repeated DB lookups in the hot path of the records stream:

  • contributors.py: cache affiliation mapping lookups
  • parent.py: cache submitter email → user_id across records
  • request.py: cache reviewer name/email → user_id across records
  • log.py: batch CSV flushes every 100 rows instead of per-row

Cache repeated DB lookups in the hot path of the records stream:
- contributors.py: cache affiliation mapping lookups
- parent.py: cache submitter email → user_id across records
- request.py: cache reviewer name/email → user_id across records
- log.py: batch CSV flushes every 100 rows instead of per-row

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zzacharo

Copy link
Copy Markdown
Contributor Author

Also, potential further improvements:

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