mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Use a transaction, for performance reasons, when deleting articles not in subscribed-to feeds.
This commit is contained in:
@@ -488,7 +488,7 @@ final class ArticlesTable: DatabaseTable {
|
||||
if feedIDs.isEmpty {
|
||||
return
|
||||
}
|
||||
queue.runInDatabase { (database) in
|
||||
queue.runInTransaction { (database) in
|
||||
let placeholders = NSString.rs_SQLValueList(withPlaceholders: UInt(feedIDs.count))!
|
||||
let sql = "select articleID from articles where feedID not in \(placeholders);"
|
||||
let parameters = Array(feedIDs) as [Any]
|
||||
|
||||
Reference in New Issue
Block a user