djyde/cusdis

Comments query optimization

Offen

#18 geöffnet am 21.04.2021

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (291 Forks)github user discovery
PR welcomehelp wanted

Repository-Metriken

Stars
 (2.779 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Comment's database query (in service/comment.service.ts) is recursive, it would cause a performance issue when the data get bigger. Should find a better way.

Related:

https://news.ycombinator.com/item?id=26885342 https://cra.mr/2010/05/30/scaling-threaded-comments-on-django-at-disqus/

Contributor Guide