perf: keep source aggregation off interactive requests
This commit is contained in:
@@ -13,7 +13,7 @@ try {
|
||||
(SELECT COUNT(*) FROM article_embedding_meta WHERE embedded_at >= datetime('now', '-1 hour')) AS contentPerHour
|
||||
`).get();
|
||||
const bySource = db.prepare(`
|
||||
SELECT source, COUNT(*) AS n FROM articles GROUP BY source ORDER BY n DESC
|
||||
SELECT DISTINCT source FROM articles ORDER BY source
|
||||
`).all();
|
||||
// Avoid scanning the 3.7 GB article table for legacy content-status values.
|
||||
// Readiness is the useful operational distinction and is available from the
|
||||
|
||||
Reference in New Issue
Block a user