mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 11:16:59 +00:00
Get searchRowID by column index 0, since it’s a single-column query. This should make searching imperceptibly faster.
This commit is contained in:
1 parent
96ab26f82e
commit
a9751d5a51
1 file changed
+1
-1
@@ -507,7 +507,7 @@ private extension ArticlesTable {
|
||||
guard let resultSet = database.executeQuery(sql, withArgumentsIn: searchStringParameters) else {
|
||||
return Set<Article>()
|
||||
}
|
||||
let searchRowIDs = resultSet.mapToSet { $0.longLongInt(forColumn: DatabaseKey.rowID) }
|
||||
let searchRowIDs = resultSet.mapToSet { $0.longLongInt(forColumnIndex: 0) }
|
||||
if searchRowIDs.isEmpty {
|
||||
return Set<Article>()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user