440hz
php.ru
MySQL Cluster - Lock wait timeout exceeded; try restarting transaction
subj
где-че подкрутить?
MySQL error: [SELECT count(*) as cnt FROM `stat_in_niches_xymdh` WHERE `x` = '62' AND `y` = '2009' AND `m` = '06' AND `d` = '01' AND `h` = '02']
MySQL error: [1205] Lock wait timeout exceeded; try restarting transaction
90к записей
[sql]
CREATE TABLE IF NOT EXISTS `stat_in_niches_xymdh` (
`x` smallint(4) NOT NULL,
`y` smallint(4) NOT NULL,
`m` smallint(4) NOT NULL,
`d` smallint(4) NOT NULL,
`h` smallint(4) NOT NULL,
`intotal` bigint(20) unsigned NOT NULL DEFAULT '0',
`in1` bigint(20) unsigned NOT NULL DEFAULT '0',
`in2` bigint(20) unsigned NOT NULL DEFAULT '0',
`in3` bigint(20) unsigned NOT NULL DEFAULT '0',
`outnocookie` bigint(20) unsigned NOT NULL DEFAULT '0',
`outnoref` bigint(20) unsigned NOT NULL DEFAULT '0',
`outnojs` bigint(20) unsigned NOT NULL DEFAULT '0',
`outproxy` bigint(20) unsigned NOT NULL DEFAULT '0',
`outaol` bigint(20) unsigned NOT NULL DEFAULT '0',
`outreal` bigint(20) unsigned NOT NULL DEFAULT '0',
`outdomain` bigint(20) unsigned NOT NULL DEFAULT '0',
`outniche` bigint(20) unsigned NOT NULL DEFAULT '0',
`outcou` bigint(20) unsigned NOT NULL DEFAULT '0',
`back` bigint(20) unsigned NOT NULL DEFAULT '0',
`b1` bigint(20) unsigned NOT NULL DEFAULT '0',
`b2` bigint(20) unsigned NOT NULL DEFAULT '0',
`b3` bigint(20) unsigned NOT NULL DEFAULT '0',
KEY `x` (`x`),
KEY `y` (`y`),
KEY `m` (`m`),
KEY `d` (`d`),
KEY `h` (`h`)
) ENGINE=ndbcluster DEFAULT CHARSET=utf8;
[/sql]
хотя бывает рубит и на других таблицах.
subj
где-че подкрутить?
MySQL error: [SELECT count(*) as cnt FROM `stat_in_niches_xymdh` WHERE `x` = '62' AND `y` = '2009' AND `m` = '06' AND `d` = '01' AND `h` = '02']
MySQL error: [1205] Lock wait timeout exceeded; try restarting transaction
90к записей
[sql]
CREATE TABLE IF NOT EXISTS `stat_in_niches_xymdh` (
`x` smallint(4) NOT NULL,
`y` smallint(4) NOT NULL,
`m` smallint(4) NOT NULL,
`d` smallint(4) NOT NULL,
`h` smallint(4) NOT NULL,
`intotal` bigint(20) unsigned NOT NULL DEFAULT '0',
`in1` bigint(20) unsigned NOT NULL DEFAULT '0',
`in2` bigint(20) unsigned NOT NULL DEFAULT '0',
`in3` bigint(20) unsigned NOT NULL DEFAULT '0',
`outnocookie` bigint(20) unsigned NOT NULL DEFAULT '0',
`outnoref` bigint(20) unsigned NOT NULL DEFAULT '0',
`outnojs` bigint(20) unsigned NOT NULL DEFAULT '0',
`outproxy` bigint(20) unsigned NOT NULL DEFAULT '0',
`outaol` bigint(20) unsigned NOT NULL DEFAULT '0',
`outreal` bigint(20) unsigned NOT NULL DEFAULT '0',
`outdomain` bigint(20) unsigned NOT NULL DEFAULT '0',
`outniche` bigint(20) unsigned NOT NULL DEFAULT '0',
`outcou` bigint(20) unsigned NOT NULL DEFAULT '0',
`back` bigint(20) unsigned NOT NULL DEFAULT '0',
`b1` bigint(20) unsigned NOT NULL DEFAULT '0',
`b2` bigint(20) unsigned NOT NULL DEFAULT '0',
`b3` bigint(20) unsigned NOT NULL DEFAULT '0',
KEY `x` (`x`),
KEY `y` (`y`),
KEY `m` (`m`),
KEY `d` (`d`),
KEY `h` (`h`)
) ENGINE=ndbcluster DEFAULT CHARSET=utf8;
[/sql]
хотя бывает рубит и на других таблицах.