Branch: Tag:

2011-05-25

2011-05-25 13:29:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Search.Queue: Add an index on the uri field.

44:    recurse tinyint not null,    stage tinyint not null,    UNIQUE(uri_md5), -  INDEX stage (stage) +  INDEX stage (stage), +  INDEX uri (uri(256))    )    "); -  +  if (!sizeof(db->query("SHOW INDEX FROM " + table + +  " WHERE key_name = 'uri'"))) { +  db->query("ALTER TABLE " + table + +  " ADD INDEX uri (uri(256))");    } -  + }      static mapping hascache = ([]);