Bug #36845 Partition with composite keys and joins
| Submitted: | 21 May 2008 8:05 | Modified: | 27 Jun 2008 16:37 |
|---|---|---|---|
| Reporter: | Tofeeq Ali | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Server: Partitions | Severity: | S2 (Serious) |
| Version: | 5.1.23-rc-community | OS: | Linux (2.6.9-67.0.4.ELsmp #1 SMP Sun Feb 3 07:06:14 EST 2008 x86_64 x86_64 x86_64 GNU/Linux) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | partition by range | ||
[21 May 2008 8:05]
Tofeeq Ali
[21 May 2008 19:17]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior with test data. Please try with current version 5.1.24 and if problem still exists provide output of explain partitions select p.id,p.email,p.firstName,p.lastName,p.address,p.address2, p.city,p.state,p.zip,p.phone,p.fax, p.responderId as 'p_responderId', p.status from subscribers p inner join TempMessages temp on p.id=temp.pId and temp.status=0 and p.id>0 and p.status < 2 and temp.mId=12165 order by p.id; explain partitions select p.id,p.email,p.firstName,p.lastName,p.address,p.address2, p.city,p.state,p.zip,p.phone,p.fax, p.responderId as 'p_responderId', p.status from subscribers p inner join TempMessages temp on p.id=temp.pId and temp.status=0 and p.id>0 and p.status < 2 and temp.mId=12165 and p.responderId=7 order by p.id;
[22 May 2008 6:34]
Tofeeq Ali
Thank you Sveeta, Here are results for Explain Partitions explain partitions select p.id,p.email,p.firstName,p.lastName,p.address,p.address2, p.city,p.state,p.zip,p.phone,p.fax, p.responderId as 'p_responderId', p.status from subscribers p inner join TempMessages temp on p.id=temp.pId and temp.status=0 and p.id>0 and p.status < 2 and temp.mId=12165 order by p.id; id select_type table partitions type possible_keys key key_len ref rows Extra 1 SIMPLE temp NULL range PRIMARY,status status 1 NULL 566184 Using where; Using temporary; Using filesort 1 SIMPLE p p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24,p25,p26,p27,p28,p29,p30,p31,p32,p33 ref PRIMARY,status PRIMARY 4 newufa.temp.pId 1 Using where and with responderid explain partitions select p.id,p.email,p.firstName,p.lastName,p.address,p.address2, p.city,p.state,p.zip,p.phone,p.fax, p.responderId as 'p_responderId', p.status from subscribers p inner join TempMessages temp on p.id=temp.pId and temp.status=0 and p.id>0 and p.status < 2 and temp.mId=12165 and p.responderId=7 order by p.id; id select_type table partitions type possible_keys key key_len ref rows Extra 1 SIMPLE p p1,p2 ref PRIMARY,responderId,status responderId 4 const 114424 Using where 1 SIMPLE temp NULL eq_ref PRIMARY,status PRIMARY 12 newufa.p.id,const 1 Using where
[22 May 2008 6:38]
Tofeeq Ali
Another thing to note is that responderId 7 Falls between two partitions but I also get an empty result for responderId 12 that falls in partition 3. Here are its explain partitions results explain partitions select p.id,p.email,p.firstName,p.lastName,p.address,p.address2, p.city,p.state,p.zip,p.phone,p.fax, p.responderId as 'p_responderId', p.status from subscribers p inner join TempMessages temp on p.id=temp.pId and temp.status=0 and p.id>0 and p.status < 2 and temp.mId=12170 and p.responderId=12 order by p.id; id select_type table partitions type possible_keys key key_len ref rows Extra 1 SIMPLE p p3 ref PRIMARY,responderId,status responderId 4 const 361650 Using where 1 SIMPLE temp NULL eq_ref PRIMARY,status PRIMARY 12 newufa.p.id,const 1 Using where
[27 May 2008 16:37]
MySQL Verification Team
Thank you for the feedback. It is possible for you to provide the data dump file? Thanks in advance.
[27 Jun 2008 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".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.062 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.