1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-31 18:31:01 +00:00

Calculate reading time during feed processing

The goal is to speed up the user interface.

Detecting the language based on the content is pretty slow.
This commit is contained in:
Frédéric Guillot 2020-11-18 17:29:40 -08:00 committed by fguillot
parent b1c9977711
commit de7a613098
12 changed files with 84 additions and 50 deletions

View file

@ -226,6 +226,7 @@ func (e *EntryQueryBuilder) GetEntries() (model.Entries, error) {
e.content,
e.status,
e.starred,
e.reading_time,
f.title as feed_title,
f.feed_url,
f.site_url,
@ -284,6 +285,7 @@ func (e *EntryQueryBuilder) GetEntries() (model.Entries, error) {
&entry.Content,
&entry.Status,
&entry.Starred,
&entry.ReadingTime,
&entry.Feed.Title,
&entry.Feed.FeedURL,
&entry.Feed.SiteURL,