Skip to content

Address IndexedDB deletion review comments#47

Closed
issackjohn wants to merge 3 commits intoissackjohn-WCIndexeddbfrom
issack/pr531-review-fixes
Closed

Address IndexedDB deletion review comments#47
issackjohn wants to merge 3 commits intoissackjohn-WCIndexeddbfrom
issack/pr531-review-fixes

Conversation

@issackjohn
Copy link
Copy Markdown
Owner

@issackjohn issackjohn commented May 6, 2026

Summary

This narrows the IndexedDB review-fix PR to the concrete review comment about avoiding resolver state on a function.

  • Replaces the iterationFinishedListener.promiseResolve pattern with a local waitForPreviousPageLoaded() helper that registers a one-shot listener.
  • Keeps the existing FinishDeletingItemsFromDB ignored step, so delete DB write completion is still measured the same way as before this PR.
  • Rebuilds the dist/ copy to match src/.

Follow-up

The WebKit review comment about delete/read DB synchronization sounded speculative (might have to sync the DB). That would change what the delete benchmark measures, so this PR leaves it out and treats it as follow-up benchmark-semantics work.

Validation

  • npm run build in experimental/javascript-wc-indexeddb
  • npx --no-install eslint ./experimental/javascript-wc-indexeddb/src/workload-test.mjs ./experimental/javascript-wc-indexeddb/src/storage/base-storage-manager.js ./experimental/javascript-wc-indexeddb/src/storage/dexieDB-manager.js ./experimental/javascript-wc-indexeddb/src/storage/indexedDB-manager.js
  • git diff --check

This comment was marked as resolved.

@issackjohn issackjohn closed this May 7, 2026
@issackjohn issackjohn deleted the issack/pr531-review-fixes branch May 7, 2026 21:29
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.

2 participants