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
4041
December 01, 2010 05:23AM
1087
December 02, 2010 12:27AM
904
December 03, 2010 08:46AM
Re: Long query locking up MySQL Server
857
December 03, 2010 02:32PM
810
December 03, 2010 09:21PM
2079
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.