diff --git a/lib/submission.go b/lib/submission.go index 12f14eb..df852db 100644 --- a/lib/submission.go +++ b/lib/submission.go @@ -98,8 +98,9 @@ func moderateSubmissionsHandler(h handler) { } for i, b := range res { data.Books[i].B = b - _, data.Books[i].TitleFound, _ = h.db.GetBooks("title:"+b.Title, 1, 0) - _, data.Books[i].AuthorFound, _ = h.db.GetBooks("author:"+strings.Join(b.Authors, " author:"), 1, 0) + // FIXME: there is a heavy performance issue searching for title/authors + //_, data.Books[i].TitleFound, _ = h.db.GetBooks("title:"+b.Title, 1, 0) + //_, data.Books[i].AuthorFound, _ = h.db.GetBooks("author:"+strings.Join(b.Authors, " author:"), 1, 0) data.Books[i].Comment, err = h.db.GetComment(b.ID) if err != nil { log.Error("Error getting comment for ", b.Title, " (", b.ID, "): ", err)