diff --git a/schema/comments_ddl.sql b/schema/comments_ddl.sql index af06eb8..eb8e1e7 100644 --- a/schema/comments_ddl.sql +++ b/schema/comments_ddl.sql @@ -36,7 +36,9 @@ CREATE TABLE IF NOT EXISTS CHANNEL( -- indexes -- DROP INDEX IF EXISTS COMMENT_CLAIM_INDEX; -CREATE INDEX IF NOT EXISTS COMMENT_CLAIM_INDEX ON COMMENT (LbryClaimId); +CREATE INDEX IF NOT EXISTS CLAIM_COMMENT_INDEX ON COMMENT (LbryClaimId, CommentId); + +CREATE INDEX IF NOT EXISTS CHANNEL_COMMENT_INDEX ON COMMENT (ChannelId, CommentId); -- VIEWS