Skip to content

Delete index entries for deleted documents #3209

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 11 commits into from
Dec 9, 2021
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

This PR deletes the index entries when a document is removed. The entries are deleted right away, but since we don't have to do much computation this is hopefully sufficient.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 6, 2021

Coverage Report

Affected SDKs

  • firebase-firestore

    SDK overall coverage changed from 45.23% (072ee4c) to 45.29% (ab237e0b) by +0.06%.

    Filename Base (072ee4c) Head (ab237e0b) Diff
    LocalStore.java 99.37% 99.37% +0.00%
    MemoryIndexManager.java 70.37% 74.07% +3.70%
    MemoryRemoteDocumentCache.java 98.08% 98.31% +0.23%
    PatchMutation.java 100.00% 98.39% -1.61%
    SQLiteIndexManager.java 99.06% 99.06% +0.00%
    SQLiteLruReferenceDelegate.java 98.63% 98.67% +0.04%
    SQLitePersistence.java 86.70% 86.84% +0.14%
    SQLiteRemoteDocumentCache.java 96.46% 96.75% +0.29%
    SetMutation.java 97.14% 94.29% -2.86%

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (ab237e0b) is created by Prow via merging commits: 072ee4c 138cddb.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 6, 2021

Binary Size Report

Affected SDKs

  • base

    Type Base (072ee4c) Head (ab237e0b) Diff
    apk (aggressive) ? 8.39 kB ? (?)
    apk (release) ? 8.65 kB ? (?)
  • firebase-annotations

    Type Base (072ee4c) Head (ab237e0b) Diff
    apk (aggressive) ? 8.39 kB ? (?)
    apk (release) ? 8.83 kB ? (?)
  • firebase-appcheck-interop

    Type Base (072ee4c) Head (ab237e0b) Diff
    aar ? 5.17 kB ? (?)
    apk (aggressive) ? 281 kB ? (?)
    apk (release) ? 924 kB ? (?)
  • firebase-common

    Type Base (072ee4c) Head (ab237e0b) Diff
    aar ? 44.3 kB ? (?)
    apk (aggressive) ? 77.8 kB ? (?)
    apk (release) ? 635 kB ? (?)
  • firebase-components

    Type Base (072ee4c) Head (ab237e0b) Diff
    aar ? 41.4 kB ? (?)
    apk (aggressive) ? 8.68 kB ? (?)
    apk (release) ? 29.5 kB ? (?)
  • firebase-database-collection

    Type Base (072ee4c) Head (ab237e0b) Diff
    aar ? 33.8 kB ? (?)
    apk (aggressive) ? 268 kB ? (?)
    apk (release) ? 901 kB ? (?)
  • firebase-firestore

    Type Base (072ee4c) Head (ab237e0b) Diff
    aar ? 1.23 MB ? (?)
    apk (aggressive) ? 443 kB ? (?)
    apk (release) ? 3.33 MB ? (?)
  • protolite-well-known-types

    Type Base (072ee4c) Head (ab237e0b) Diff
    aar ? 993 kB ? (?)
    apk (aggressive) ? 134 kB ? (?)
    apk (release) ? 661 kB ? (?)

Test Logs

Notes

Head commit (ab237e0b) is created by Prow via merging commits: 072ee4c 138cddb.

@schmidt-sebastian schmidt-sebastian changed the base branch from master to mrschmidt/onequeryengine December 7, 2021 16:15
Copy link

@thebrianchen thebrianchen left a comment

Choose a reason for hiding this comment

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

lgtm, looks good!

Base automatically changed from mrschmidt/onequeryengine to master December 9, 2021 01:08
@google-oss-bot
Copy link
Contributor

@schmidt-sebastian: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
device-check-changed 138cddb link /test device-check-changed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@schmidt-sebastian schmidt-sebastian merged commit 7d86138 into master Dec 9, 2021
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/deletes branch December 9, 2021 01:47
@firebase firebase locked and limited conversation to collaborators Jan 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants