vdhamer / SwiftLee-Aggregator

This iOS/SwiftUI app collects blog postings by SwiftLee on Swift and related topics. Note that the app is only a SwiftLee aggregator and not an app developed by SwiftLee.
MIT License
2 stars 0 forks source link

Why is list stuck at 200 posts? #45

Closed vdhamer closed 2 years ago

vdhamer commented 2 years ago

Why wasn't the 201 post loading after 12-Jul-22? And when I reset the CoreDatabase, it did load the 12-Jul-22, but another post was gone.

vdhamer commented 2 years ago

Apparently SwiftLee sometimes rewrites an old article, thus recycling its shortURL.

Example: article on Sendable/@Sendable was first published on Oct 19th 2021. It was republished on Aug 2nd 2022, but most fields of the record didn't change. So it was considered a duplicate and not updated or added to the database. Fixed by changing NSMergePolicy to overwrite.

Similarly an article on integrating UiKit view into SwiftUI and vice versa (Dec 28th 2020) was rewritten under a modified title on July 26th 2022.