Skip to content

Commit 1e35696

Browse files
author
Clément Le Provost
committed
Save bandwidth in “delete by” queries by retrieving only objectID
1 parent fb2ca15 commit 1e35696

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Index.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ import Foundation
461461

462462
override func start() {
463463
super.start()
464+
// Save bandwidth by retrieving only the `objectID` attribute.
465+
query.attributesToRetrieve = ["objectID"]
464466
index.browse(query, completionHandler: self.handleResult)
465467
}
466468

0 commit comments

Comments
 (0)