Skip to content

Commit

Permalink
Improve performance writing to the datastore by 2×
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Jul 6, 2023
1 parent 1e26ca9 commit 37aa58d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct DatastoreIndexManifest: Equatable, Identifiable {

/// Pointers to the pageIDs currently in use by the index.
var orderedPageIDs: some Sequence<DatastorePageIdentifier> {
orderedPages.lazy.compactMap { pageInfo -> DatastorePageIdentifier? in
orderedPages.compactMap { pageInfo -> DatastorePageIdentifier? in
if case .removed = pageInfo { return nil }

return pageInfo.id
Expand Down

0 comments on commit 37aa58d

Please sign in to comment.