Skip to content

Snapshot minting's interval Env is not being leveraged. - #32

Open
a-guhan wants to merge 1 commit into
mainfrom
optimize/recent-write-index
Open

a-guhan wants to merge 1 commit into
mainfrom
optimize/recent-write-index

Conversation

@a-guhan

@a-guhan a-guhan commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Issue #31 .

Even though snapshot minting has an interval Env configured, it is not being used properly because establishing the consistent LSN for snapshot in standby is dependent on running txns record from primary, so usually it is taking around 15 seconds for minter to acquire a snapshot, which result in heavy engine work to apply all the WAL buffered in recent queue.

  1. We can have a dedicated connection to master for a configured (default 5 seconds) to execute the pg_log_standby_snapshot() function which writes the txn record in WAL which can be consumed by standby and quickly consistent LSN for the snapshot can be established.
  2. Currently after reading the initial results from storage we apply all the buffered WAL in liner time, we can improve it by indexing with table.

@a-guhan

a-guhan commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author
Testing

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