Conversation
🦋 Changeset detectedLatest commit: 73bfb9b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Changeset File Check ✅
|
Size Report 1Affected ProductsNo changes between base commit (74fc4cf) and merge commit (1921365).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (74fc4cf) and merge commit (1921365).Test Logs |
|
@markarndt Please review this PR for tech writer approval. |
|
@markarndt For context, the equivalent PR in the android sdk, which you reviewed, is firebase/firebase-android-sdk#5256. |
|
|
||
| > Warning: This API is now obsolete. | ||
| > | ||
| > Instead of creating cache indexes manually, consider using `enablePersistentCacheIndexAutoCreation()` to let SDK decide whether to create cache indexes for queries running locally. |
There was a problem hiding this comment.
Edit:
"Instead of creating cache indexes manually, consider using enablePersistentCacheIndexAutoCreation() to let the SDK decide whether to create cache indexes for queries running locally."
There was a problem hiding this comment.
And line 16 in a couple other files below.
| | <b>function(indexManager...)</b> | | ||
| | [deleteAllPersistentCacheIndexes(indexManager)](./firestore_.md#deleteallpersistentcacheindexes) | Removes all persistent cache indexes.<!-- -->Please note this function will also deletes indexes generated by <code>setIndexConfiguration()</code>, which is deprecated. | | ||
| | [disablePersistentCacheIndexAutoCreation(indexManager)](./firestore_.md#disablepersistentcacheindexautocreation) | Stops creating persistent cache indexes automatically for local query execution. The indexes which have been created by calling <code>enablePersistentCacheIndexAutoCreation()</code> still take effect. | | ||
| | [enablePersistentCacheIndexAutoCreation(indexManager)](./firestore_.md#enablepersistentcacheindexautocreation) | Enables SDK to create persistent cache indexes automatically for local query execution when SDK believes cache indexes can help improves performance.<!-- -->This feature is disabled by default. | |
There was a problem hiding this comment.
Edit:
"enablePersistentCacheIndexAutoCreation(indexManager) | Enables the SDK to create persistent cache indexes automatically for local query execution when the SDK believes cache indexes can help improves performance.This feature is disabled by default."
| | [FirestoreError](./firestore_.firestoreerror.md#firestoreerror_class) | An error returned by a Firestore operation. | | ||
| | [GeoPoint](./firestore_.geopoint.md#geopoint_class) | An immutable object representing a geographic location in Firestore. The location is represented as latitude/longitude pair.<!-- -->Latitude values are in the range of \[-90, 90\]. Longitude values are in the range of \[-180, 180\]. | | ||
| | [LoadBundleTask](./firestore_.loadbundletask.md#loadbundletask_class) | Represents the task of loading a Firestore bundle. It provides progress of bundle loading, as well as task completion and error events.<!-- -->The API is compatible with <code>Promise<LoadBundleTaskProgress></code>. | | ||
| | [PersistentCacheIndexManager](./firestore_.persistentcacheindexmanager.md#persistentcacheindexmanager_class) | A <code>PersistentCacheIndexManager</code> which you can config persistent cache indexes used for local query execution.<!-- -->To use, call <code>getPersistentCacheIndexManager()</code> to get an instance. | |
There was a problem hiding this comment.
Edits:
PersistentCacheIndexManager | A PersistentCacheIndexManager for configuring persistent cache indexes used for local query execution.To use, call getPersistentCacheIndexManager() to get an instance.
|
|
||
| > Warning: This API is now obsolete. | ||
| > | ||
| > Instead of creating cache indexes manually, consider using `enablePersistentCacheIndexAutoCreation()` to let SDK decide whether to create cache indexes for queries running locally. |
There was a problem hiding this comment.
Edit:
"Instead of creating cache indexes manually, consider using enablePersistentCacheIndexAutoCreation() to let the SDK decide whether to create cache indexes for queries running locally."
|
|
||
| ## enablePersistentCacheIndexAutoCreation() | ||
|
|
||
| Enables SDK to create persistent cache indexes automatically for local query execution when SDK believes cache indexes can help improves performance. |
There was a problem hiding this comment.
Edit:
"Enables the SDK to create persistent cache indexes automatically for local query execution when the SDK believes cache indexes can help improves performance."
| https://github.com/firebase/firebase-js-sdk | ||
| {% endcomment %} | ||
|
|
||
| # PersistentCacheIndexManager class |
There was a problem hiding this comment.
Edit (I don't know if these are generated files, so edits to source may make these .md edits unnecessary.
"A PersistentCacheIndexManager for configuring persistent cache indexes used for local query execution."
…believes' -> 'when the SDK believes' and 'can help improves performance' -> 'can help improve performance'
|
@markarndt PTAL. I believe I have addressed your feedback. |
Expose the functions and types for using the Firestore SDK's local persistent cache index auto-creation feature, and deprecate the functions for manually creating these indexes.
The following functions and types are made available by this PR:
PersistentCacheIndexManagergetPersistentCacheIndexManager()enablePersistentCacheIndexAutoCreation()disablePersistentCacheIndexAutoCreation()deleteAllPersistentCacheIndexes()This feature was implemented (but hidden) in the following PRs: #7542 and #7587. See those PRs and the public reference documentation for full details on this feature.