Closed lemon24 closed 11 months ago
What about get_feeds(broken=..., updates_enabled=..., new=...)?
Where do we draw the line? Is this turning into #253? (DynamoDB has rotted my brain.)
Related: http://howto.philippkeller.com/2005/04/24/Tags-Database-schemas/, vaguely reminiscent of https://en.wikipedia.org/wiki/Star_schema; also see https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model
What would reader look like if you could only filter and sort by tags?
So, based on various SQLite forum threads, the general conclusion seems to be "don't bother – design your schema as you normally would, and add indexes as needed later on"; in fairness, this is something I already knew, but as I said, DynamoDB has rotted my brain.
I also tentatively removed has_enclosures, and it didn't remove all that much code.
So:
Ran some benchmarks, here's a summary:
has-enclosures
entry tag, there seems to be almost no difference between using has_enclosures or the tag.
The has_enclosures filter predates entry tags, and was meant as a proxy for "is a podcast item" (which works fine, at least with the feeds I'm subscribed to).
The same functionality can be obtained with a plugin that sets a tag, then used as a filter with get_entries(tags=['.has-enclosures']).
Some arguments for this:
Removing the has_enclosures argument is a compatibility break, so it needs to be done in 4.0, #291.