Clean up of expired interest groups #5
Replies: 3 comments 4 replies
-
My suggestion: Clean up interest groups after each Maybe we implement naively without a mutex and create an issue to add this protection later. |
Beta Was this translation helpful? Give feedback.
-
How far do we go to clean up? The current specification has us storing things by a top-level That means when we're deleting interest groups, we'd be deleting the nested |
Beta Was this translation helpful? Give feedback.
-
What if we clean up only when the storage limits get close: if (navigator.storage && navigator.storage.estimate) {
const quota = await navigator.storage.estimate();
// quota.usage -> Number of bytes used.
// quota.quota -> Maximum number of bytes available.
const percentageUsed = (quota.usage / quota.quota) * 100;
console.log(`You've used ${percentageUsed}% of the available storage.`);
const remaining = quota.quota - quota.usage;
console.log(`You can write up to ${remaining} more bytes.`);
} And maybe we start the clean-up process only if the quota is close to 80%? Thoughts? |
Beta Was this translation helpful? Give feedback.
-
When do we clean up the expired groups? After the auction? Upon updating/adding to a new interest group?
Depending on when we clean up, there could be a race condition (may not be that big a deal) whereby you’re deleting an interest group from an expired session right before an auction.
Beta Was this translation helpful? Give feedback.
All reactions