Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache entry content in db #86

Merged
merged 16 commits into from
Jan 3, 2024
Merged

Cache entry content in db #86

merged 16 commits into from
Jan 3, 2024

Conversation

facundoolano
Copy link
Owner

@facundoolano facundoolano commented Jan 2, 2024

  • Adds a new content_full field and rename the previous body to content_short
  • Stores the cleaned up article html in the db after the first fetch and reuse it on subsequent requests
  • Adds a periodic task to prefetch the content from the first few entries in each user's feed
  • Prefetch when pinning an entry.
  • Moved the scraping related code to its own module.
  • Updated the nodejs script to accept article HTML from stdin as an alternative to the url argument (I ended up not using this feature).

I made some experiments on running readability during entry sync (for the ones I already had the HTML available) and that proved to slow the task too much.

@facundoolano facundoolano merged commit d373d18 into main Jan 3, 2024
1 check passed
@facundoolano facundoolano deleted the store_full_content branch January 3, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant