Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(db): Remove events.tx_initiator_address #3559

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

slowli
Copy link
Contributor

@slowli slowli commented Jan 31, 2025

What ❔

Removes the events.tx_initiator_address field in Postgres.

Why ❔

This data isn't used in DB queries, so it bloats the Postgres storage. It has an associated index, so it may negatively influence insertion latency as well.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

@slowli slowli marked this pull request as ready for review January 31, 2025 13:00
popzxc
popzxc previously approved these changes Feb 4, 2025
Deniallugo
Deniallugo previously approved these changes Feb 6, 2025
@Deniallugo Deniallugo dismissed their stale review February 6, 2025 17:41

The transaction is blocking

Copy link
Contributor

@Deniallugo Deniallugo left a comment

Choose a reason for hiding this comment

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

we have to split it to two prs.
One with changing the behaviour and next one with changing the schema, that will actually be merged only after the next protocol upgrade

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