Re: Server just hanging (Copying to tmp table)
Your Query change:
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: xno_items
type: ref
possible_keys: active
key: active
key_len: 4
ref: const
rows: 1647
Extra: Using temporary; Using filesort
*************************** 2. row ***************************
id: 1
select_type: SIMPLE
table: xno_prod_index
type: eq_ref
possible_keys: PRIMARY
key: PRIMARY
key_len: 64
ref: finerkitchens_com.xno_items.itemid,const
rows: 1
Extra:
*************************** 3. row ***************************
id: 1
select_type: SIMPLE
table: xno_item_cat
type: index
possible_keys: NULL
key: PRIMARY
key_len: 8
ref: NULL
rows: 5155
Extra: Using index
*************************** 4. row ***************************
id: 1
select_type: SIMPLE
table: xno_categories
type: eq_ref
possible_keys: PRIMARY,active
key: PRIMARY
key_len: 4
ref: finerkitchens_com.xno_item_cat.catid
rows: 1
Extra:
*************************** 5. row ***************************
id: 1
select_type: SIMPLE
table: xno_manufacturers
type: eq_ref
possible_keys: PRIMARY
key: PRIMARY
key_len: 4
ref: finerkitchens_com.xno_items.mfgid
rows: 1
Extra:
Original Query:
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: xno_items
type: ref
possible_keys: PRIMARY,active
key: active
key_len: 4
ref: const
rows: 1647
Extra: Using temporary; Using filesort
*************************** 2. row ***************************
id: 1
select_type: SIMPLE
table: xno_prod_index
type: eq_ref
possible_keys: PRIMARY
key: PRIMARY
key_len: 64
ref: finerkitchens_com.xno_items.itemid,const
rows: 1
Extra: Using where
*************************** 3. row ***************************
id: 1
select_type: SIMPLE
table: xno_item_cat
type: index
possible_keys: NULL
key: PRIMARY
key_len: 8
ref: NULL
rows: 5155
Extra: Using index
*************************** 4. row ***************************
id: 1
select_type: SIMPLE
table: xno_categories
type: eq_ref
possible_keys: PRIMARY,active
key: PRIMARY
key_len: 4
ref: finerkitchens_com.xno_item_cat.catid
rows: 1
Extra: Using where
*************************** 5. row ***************************
id: 1
select_type: SIMPLE
table: xno_manufacturers
type: eq_ref
possible_keys: PRIMARY
key: PRIMARY
key_len: 4
ref: finerkitchens_com.xno_items.mfgid
rows: 1
Extra:
Incidentally, I tried putting the xno_prod_index.word ='thermometer' in the "where" clause and left the xno_categories.active = 1 up in the join and then disabled a category and ran the query. The Items in the disabled category still showed up. When I used my original query, they did not. It is as if the MySQL SErver is ignoring the additional filters on the join statement.
I know enough to be dangerous. Thanks for being patient!
Subject
Views
Written By
Posted
27461
August 11, 2005 11:25AM
23606
August 12, 2005 09:07AM
18916
August 12, 2005 01:06PM
18393
August 22, 2005 09:46AM
16477
August 24, 2005 03:27PM
12940
August 24, 2005 04:05PM
13629
August 26, 2005 11:02AM
7403
August 26, 2005 11:05AM
6788
August 26, 2005 11:45AM
6568
August 26, 2005 05:46PM
6838
August 26, 2005 10:34PM
6437
August 25, 2005 01:08PM
5837
August 26, 2005 11:07AM
5639
August 27, 2005 09:09AM
5959
August 29, 2005 11:50AM
5887
August 29, 2005 12:04PM
5240
August 29, 2005 12:55PM
5127
August 29, 2005 05:26PM
5103
August 29, 2005 06:34PM
4732
August 29, 2005 08:40PM
4615
August 29, 2005 08:47PM
4481
August 29, 2005 09:00PM
4678
August 30, 2005 10:05AM
4556
August 30, 2005 10:18AM
5072
August 30, 2005 10:20AM
6090
August 29, 2005 08:53PM
4949
August 29, 2005 09:50PM
4790
August 29, 2005 10:01PM
5224
August 30, 2005 08:53AM
4642
August 30, 2005 11:22AM
5182
August 30, 2005 11:33AM
4847
August 30, 2005 11:59AM
24314
August 31, 2005 02:32PM
6484
August 31, 2005 02:49PM
5169
August 31, 2005 02:56PM
5019
August 31, 2005 03:06PM
8259
December 07, 2006 10:30AM
4962
August 31, 2005 03:10PM
4834
August 31, 2005 03:32PM
17677
August 31, 2005 07:15PM
5077
September 01, 2005 03:05AM
7796
September 15, 2005 04:31PM
5515
September 01, 2005 04:39AM
4421
September 08, 2005 09:53AM
4775
September 08, 2005 11:25AM
4554
September 26, 2005 11:52AM
4469
September 26, 2005 12:13PM
4405
September 27, 2005 09:55AM
4180
September 27, 2005 10:18AM
4077
September 28, 2005 10:29AM
4227
September 28, 2005 10:34AM
4397
September 28, 2005 10:52AM
4862
September 28, 2005 10:58AM
9633
September 23, 2005 01:56AM
4921
September 23, 2005 07:11AM
4896
October 05, 2005 04:58AM
5094
October 05, 2005 04:52PM
6095
October 05, 2005 11:49PM
5373
October 06, 2005 01:34AM
6677
October 06, 2005 04:57PM
4614
December 13, 2005 10:28AM
4600
December 13, 2005 10:34AM
4505
November 17, 2005 09:39AM
4868
January 08, 2007 12:12PM
4745
December 12, 2005 02:13PM
4585
December 14, 2005 11:43PM
4181
December 15, 2005 08:37AM
4252
December 15, 2005 11:18AM
Re: Server just hanging (Copying to tmp table)
4165
December 15, 2005 11:27AM
4286
December 15, 2005 11:32AM
4039
December 15, 2005 11:43AM
3995
December 15, 2005 11:43AM
4169
December 15, 2005 11:48AM
4058
December 15, 2005 11:51AM
4449
December 15, 2005 02:14PM
4100
December 15, 2005 02:18PM
3971
December 15, 2005 02:27PM
4468
December 15, 2005 02:43PM
4021
December 15, 2005 08:46AM
5008
January 26, 2006 12:38PM
4130
January 26, 2006 01:48PM
4211
January 26, 2006 01:48PM
3992
January 26, 2006 01:52PM
4140
January 27, 2006 04:46PM
4015
January 29, 2006 11:21AM
4353
January 30, 2006 09:42AM
4382
February 27, 2006 02:17PM
4071
February 27, 2006 02:23PM
4301
March 05, 2006 04:56AM
4119
March 06, 2006 08:09AM
4088
April 05, 2006 01:03PM
4270
September 27, 2006 08:43AM
4223
November 19, 2006 04:42AM
4371
December 14, 2006 05:45PM
4192
February 01, 2007 04:40AM
4860
November 11, 2007 01:24PM
5069
December 20, 2007 10:40AM
6500
January 21, 2008 10:14AM
5843
January 21, 2008 10:53AM
5305
May 19, 2008 09:41AM
5516
February 05, 2008 10:27AM
6061
March 12, 2008 08:37AM
5379
May 19, 2008 03:02AM
6117
November 14, 2008 12:31AM
7127
March 06, 2009 03:36PM