Skip to content

The number form of setTTLExpiration keeps the daily default cleanup scan #3372

Open

Description

@kriszyp

Table.setTTLExpiration(seconds) (the number form) sets the expiration but keeps whatever cleanup scan cadence the table already had, which for a table whose TTL was never declared through the object form is the daily default (cleanupInterval starts at 86400000 in makeTable). The object form derives the cadence from (expiration + eviction) / 4. So a table configured only through the number form expires records on read but reclaims them once a day. This is main's existing behavior, surfaced while reviewing harper-pro#436 step 1, which keeps it unchanged.

Review-Deferral: 4402531b64a9d499 severity=minor category=correctness

🤖 Generated by Claude Fable 5.1; posted via @kriszyp.

Review-Deferral: bd5a93255e400188 severity=minor category=correctness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

P3

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions