Skip to content

Improve performance by using getAll on IDBIndex. #6975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 5, 2023

Conversation

tom-andersen
Copy link
Contributor

@tom-andersen tom-andersen commented Jan 24, 2023

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2023

⚠️ No Changeset found

Latest commit: 832337d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 24, 2023

Size Report 1

Affected Products

  • @firebase/firestore

    TypeBase (ac10cc3)Merge (6e147d5)Diff
    browser374 kB374 kB+20 B (+0.0%)
    esm5360 kB360 kB+20 B (+0.0%)
    main576 kB576 kB+50 B (+0.0%)
    module374 kB374 kB+20 B (+0.0%)
    react-native374 kB374 kB+20 B (+0.0%)
  • bundle

    TypeBase (ac10cc3)Merge (6e147d5)Diff
    firestore (Persistence)302 kB302 kB+20 B (+0.0%)
  • firebase

    TypeBase (ac10cc3)Merge (6e147d5)Diff
    firebase-compat.js779 kB779 kB+22 B (+0.0%)
    firebase-firestore-compat.js340 kB340 kB+22 B (+0.0%)
    firebase-firestore.js434 kB434 kB+20 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/8VaHFmRLMb.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 24, 2023

Size Analysis Report 1

Affected Products

  • @firebase/firestore

    • clearIndexedDbPersistence

      Size

      TypeBase (ac10cc3)Merge (6e147d5)Diff
      size26.5 kB26.5 kB+20 B (+0.1%)
      size-with-ext-deps96.5 kB96.6 kB+20 B (+0.0%)
    • enableIndexedDbPersistence

      Size

      TypeBase (ac10cc3)Merge (6e147d5)Diff
      size186 kB186 kB+20 B (+0.0%)
      size-with-ext-deps258 kB258 kB+20 B (+0.0%)
    • enableMultiTabIndexedDbPersistence

      Size

      TypeBase (ac10cc3)Merge (6e147d5)Diff
      size221 kB221 kB+20 B (+0.0%)
      size-with-ext-deps293 kB294 kB+20 B (+0.0%)
    • persistentLocalCache

      Size

      TypeBase (ac10cc3)Merge (6e147d5)Diff
      size183 kB183 kB+20 B (+0.0%)
      size-with-ext-deps255 kB255 kB+20 B (+0.0%)
    • persistentMultipleTabManager

      Size

      TypeBase (ac10cc3)Merge (6e147d5)Diff
      size218 kB218 kB+20 B (+0.0%)
      size-with-ext-deps290 kB290 kB+20 B (+0.0%)
    • persistentSingleTabManager

      Size

      TypeBase (ac10cc3)Merge (6e147d5)Diff
      size182 kB182 kB+20 B (+0.0%)
      size-with-ext-deps254 kB254 kB+20 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/4srYzV5EE5.html

@tom-andersen tom-andersen marked this pull request as ready for review December 4, 2023 23:33
@tom-andersen tom-andersen requested review from a team as code owners December 4, 2023 23:33
Copy link
Contributor

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

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

LGTM. But do we have a way to test the new code path using getAll with an index? Or will that already be covered in the tests we do across different browsers?

@tom-andersen
Copy link
Contributor Author

LGTM. But do we have a way to test the new code path using getAll with an index? Or will that already be covered in the tests we do across different browsers?

The test:browser scripts will run this and pass.

@tom-andersen tom-andersen merged commit 8586373 into master Dec 5, 2023
@tom-andersen tom-andersen deleted the tomandersen/getAllOnIDBIndex branch December 5, 2023 16:53
@firebase firebase locked and limited conversation to collaborators Jan 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants