forked from MarseyWorld/MarseyWorld
fix searching comments statement timeout
parent
8fe06def55
commit
a013c7358a
|
@ -247,7 +247,6 @@ def searchcomments(v):
|
||||||
if v.admin_level < PERMS['POST_COMMENT_MODERATION']:
|
if v.admin_level < PERMS['POST_COMMENT_MODERATION']:
|
||||||
comments = comments.filter(
|
comments = comments.filter(
|
||||||
Comment.is_banned==False,
|
Comment.is_banned==False,
|
||||||
Comment.deleted_utc == 0,
|
|
||||||
or_(
|
or_(
|
||||||
Post.draft == False,
|
Post.draft == False,
|
||||||
Comment.wall_user_id != None
|
Comment.wall_user_id != None
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
CREATE INDEX comments_body_ts_idx ON public.comments USING GIN (body_ts);
|
Loading…
Reference in New Issue