Bug #26156 | hangs when joining to multi-database view | ||
---|---|---|---|
Submitted: | 7 Feb 2007 18:21 | Modified: | 12 May 2007 16:05 |
Reporter: | Joe Murray | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S1 (Critical) |
Version: | 5.0.24a | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[7 Feb 2007 18:21]
Joe Murray
[7 Feb 2007 18:39]
Joe Murray
The query can be simplified and still cause the hang as follows: SELECT topic.id FROM no_topics topic LEFT OUTER JOIN sso_no_members mem ON mem.id = topic.owner LEFT OUTER JOIN no_posts pos ON pos.topic = topic.id AND pos.created = topic.last_post LEFT OUTER JOIN sso_no_members mem2 ON mem2.id = pos.member; Removing any of the outer joins solves the problem with causing a hang.
[7 Feb 2007 18:41]
Joe Murray
the no_posts table has no rows.
[8 Feb 2007 9:13]
Sveta Smirnova
Thank you for the report. Please try using current 5.0.33 version and you can repeat hang, please provide output of SHOW CREATE TABLE for each underlying table.
[23 Feb 2007 22:16]
Joe Murray
The ISP won't update the version of MySQL till later. I found that using ALGORITHM=TEMPTABLE works around issue. I've attached the SHOW CREATE TABLE outputs to the files tab.
[23 Feb 2007 22:18]
Joe Murray
show create table output.txt
Attachment: show create table.txt (text/plain), 12.77 KiB.
[26 Feb 2007 8:48]
Sveta Smirnova
Please also provide output of SHOW CREATE TABLE civicrm_domain
[26 Feb 2007 16:37]
Joe Murray
Here's the output of SHOW CREATE TABLE civicrm_domain: Table Create Table civicrm_domain CREATE TABLE `civicrm_domain` (\n `id` int(10) unsigned NOT NULL auto_increment COMMENT 'Domain ID',\n `name` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'Name of Domain / Organization',\n `description` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'Description of Domain.',\n `contact_name` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'Name of the person responsible for this domain',\n `email_domain` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'The domain from which outgoing email for this domain will appear to originate',\n `email_return_path` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'The domain from which outgoing email for this domain will appear to originate',\n `config_backend` text collate utf8_unicode_ci COMMENT 'Backend configuration.',\n `config_frontend` text collate utf8_unicode_ci COMMENT 'Frontend configuration.',\n PRIMARY KEY (`id`),\n UNIQUE KEY `UI_name` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
[26 Feb 2007 16:58]
Sveta Smirnova
Please also provide output of SHOW CREATE TABLE civicrm_location
[26 Mar 2007 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[12 Apr 2007 16:05]
Valeriy Kravchuk
Feedback is still needed.
[12 May 2007 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".