MySQL Forums
Forum List  »  Performance

Re: Long query locking up MySQL Server
Posted by: Radek Antoniuk
Date: December 03, 2010 02:32PM

Thanks for the hint about the redundant keys.
I didn't know that complex "sub-keys" are useful for one-column keys as well.

The other table is:
 CREATE TABLE `kody_regionow` (
  `kod` char(3) COLLATE utf8_polish_ci NOT NULL DEFAULT '',
  `region` varchar(50) COLLATE utf8_polish_ci NOT NULL DEFAULT '',
  `panstwo` varchar(80) COLLATE utf8_polish_ci NOT NULL DEFAULT '',
  `kod_panstwa_iso` char(2) COLLATE utf8_polish_ci NOT NULL,
  `kod_pogoda` varchar(10) COLLATE utf8_polish_ci NOT NULL,
  UNIQUE KEY `kod` (`kod`),
  KEY `kod_panstwa_iso` (`kod_panstwa_iso`),
  KEY `region` (`region`),
  KEY `kodyRegionyIdx` (`region`,`panstwo`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci

Options: ReplyQuote


Subject
Views
Written By
Posted
4301
December 01, 2010 05:23AM
1081
December 01, 2010 02:54PM
1163
December 02, 2010 12:27AM
1052
December 03, 2010 08:05AM
991
December 03, 2010 08:46AM
1043
December 03, 2010 01:52PM
1058
December 03, 2010 02:23PM
Re: Long query locking up MySQL Server
937
December 03, 2010 02:32PM
1024
December 03, 2010 03:20PM
897
December 03, 2010 09:21PM
2213
December 04, 2010 11:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.