Permalink
Browse files

Add index on (channel, nick) for faster nick: searches.

  • Loading branch information...
1 parent d413e5b commit bc7f5e7f8caa412da4720aea3486823e9c9648c5 @whitequark committed Oct 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 config/schema.sql
View
1 config/schema.sql
@@ -11,4 +11,5 @@ CREATE TABLE `irclog` (
CREATE INDEX `irclog_channel_timestamp_index` ON `irclog` (channel, timestamp);
CREATE INDEX `irclog_channel_opcode_index` ON `irclog` (channel, opcode);
+CREATE INDEX `irclog_channel_nick_index` ON `irclog` (channel, nick);
CREATE FULLTEXT INDEX `irclog_fulltext_index` ON `irclog` (nick, line);

0 comments on commit bc7f5e7

Please sign in to comment.