Improve profile loading, add feeds util, add deriveIsDeleted, loosen up delta guess

This commit is contained in:
Jon Staab
2024-10-24 14:19:32 -07:00
parent bd8aaa8685
commit 0348b4166e
4 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ export const getFilterGenerality = (filter: Filter) => {
}
export const guessFilterDelta = (filters: Filter[], max = 60 * 60 * 24 * 7) =>
Math.round(max * Math.max(0.005, 1 - avg(filters.map(getFilterGenerality))))
Math.round(max * Math.max(0.01, 1 - avg(filters.map(getFilterGenerality))))
// If a filter is specifying ids, we know how many results to expect
export const getFilterResultCardinality = (filter: Filter) => {