Skip to content

[WAL] wal_autocheckpoint_entries setting#20720

Merged
Mytherin merged 11 commits intoduckdb:v1.5-variegatafrom
artjomPlaunov:wal
Feb 2, 2026
Merged

[WAL] wal_autocheckpoint_entries setting#20720
Mytherin merged 11 commits intoduckdb:v1.5-variegatafrom
artjomPlaunov:wal

Conversation

@artjomPlaunov
Copy link
Contributor

@artjomPlaunov artjomPlaunov commented Jan 28, 2026

For: https://github.com/duckdblabs/duckdb-internal/issues/6642

Setting to auto checkpoint based on the number of entries that were written to the WAL.

@artjomPlaunov
Copy link
Contributor Author

Perhaps I should move the reset to the WAL constructor?

Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! LGTM - some minor comments

@artjomPlaunov
Copy link
Contributor Author

Thanks for the review @Mytherin! added the changes

@artjomPlaunov artjomPlaunov changed the title [WIP][WAL] wal_autocheckpoint_transactions setting [WIP][WAL] wal_autocheckpoint_entries setting Jan 29, 2026
@artjomPlaunov artjomPlaunov changed the title [WIP][WAL] wal_autocheckpoint_entries setting [WAL] wal_autocheckpoint_entries setting Jan 29, 2026
Copy link
Contributor

@taniabogatsch taniabogatsch left a comment

Choose a reason for hiding this comment

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

Looks good from my side - @Mytherin, we changed the count to entries instead of transactions to stay consistent with the existing metric.

@artjomPlaunov artjomPlaunov marked this pull request as ready for review January 30, 2026 09:34
@artjomPlaunov artjomPlaunov marked this pull request as draft January 30, 2026 13:14
@artjomPlaunov
Copy link
Contributor Author

Ah, forgot to zero initialize the new wal_entries_count, since atomics are only zero initialized in static and thread local objects. going to fix that now.

@artjomPlaunov
Copy link
Contributor Author

I also re-introduced the ResetWALEntryCount() for this since it is now used in the WAL constructor.

@artjomPlaunov artjomPlaunov marked this pull request as ready for review January 30, 2026 14:51
@Mytherin Mytherin merged commit 992df35 into duckdb:v1.5-variegata Feb 2, 2026
61 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Feb 2, 2026

Thanks! Looks good

@artjomPlaunov artjomPlaunov deleted the wal branch February 3, 2026 15:23
krlmlr added a commit to krlmlr/duckdb-r that referenced this pull request Feb 28, 2026
Date: 2026-02-02 15:48:03 +0100

[WAL] wal_autocheckpoint_entries setting (duckdb/duckdb#20720)
add index iterate patch to spatial (duckdb/duckdb#20775)
[chore] Fixup autocomplete missing std::move (duckdb/duckdb#20773)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Feb 28, 2026
Date: 2026-02-02 15:48:03 +0100

[WAL] wal_autocheckpoint_entries setting (duckdb/duckdb#20720)
add index iterate patch to spatial (duckdb/duckdb#20775)
[chore] Fixup autocomplete missing std::move (duckdb/duckdb#20773)
krlmlr added a commit to krlmlr/duckdb-r that referenced this pull request Feb 28, 2026
Date: 2026-02-02 15:48:03 +0100

[WAL] wal_autocheckpoint_entries setting (duckdb/duckdb#20720)
add index iterate patch to spatial (duckdb/duckdb#20775)
[chore] Fixup autocomplete missing std::move (duckdb/duckdb#20773)
krlmlr added a commit to krlmlr/duckdb-r that referenced this pull request Feb 28, 2026
Date: 2026-02-02 15:48:03 +0100

[WAL] wal_autocheckpoint_entries setting (duckdb/duckdb#20720)
add index iterate patch to spatial (duckdb/duckdb#20775)
[chore] Fixup autocomplete missing std::move (duckdb/duckdb#20773)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants