Re: Optimize question

2006-11-11 Thread Leandro GuimarĂ£es Faria Corcete DUTRA
On Wed, 08 Nov 2006 15:38:27 -0500, Francis wrote: > If I do a select to get the log for this date 2006-01-01 : > Select * from mytable where mydate => '2006-01-01' and mydate <= > '2006-01-01'. > > Do you think is more faster to do on table with have only one date or is > the same think if I do

Optimize question

2006-11-08 Thread Francis
Hi list, I have a table with about 17 millons of records. This table contain log of web for one month and I have an other table but with only 1 day of log. If I do a select to get the log for this date 2006-01-01 : Select * from mytable where mydate => '2006-01-01' and mydate <= '

Re: Optimize Question

2003-08-25 Thread Dan Nelson
In the last episode (Aug 25), Patrick Crowley said: > I'm running 3.23.52 locally, but I just noticed my production server > is running 4.0.12. > > Given the complexity of this query, should I use subqueries instead > of joins? Would that make any difference? The subquery equivalent to your joins

Re: Optimize Question

2003-08-25 Thread Patrick Crowley
I'm running 3.23.52 locally, but I just noticed my production server is running 4.0.12. Given the complexity of this query, should I use subqueries instead of joins? Would that make any difference? Best, Patrick > What version of mysql is this? If you're running 3.23, does 4.0.14 do the > same

Re: Optimize Question

2003-08-25 Thread Dan Nelson
In the last episode (Aug 25), Patrick Crowley said: > I just tried that, but with mixed results. > > Like before, when I added an index on publish, I get a 'range' join, but > it's still doing filesort. > > > | theater | range | status_publish | 1 | NULL | 4279 | where used; Using filesort > > A

Re: Optimize Question

2003-08-25 Thread Patrick Crowley
I just tried that, but with mixed results. Like before, when I added an index on publish, I get a 'range' join, but it's still doing filesort. > | theater | range | status_publish | 1 | NULL | 4279 | where used; Using filesort Any way around that? Best, Patrick > An index on t (publish,photo,n

Re: Optimize Question

2003-08-25 Thread Dan Nelson
In the last episode (Aug 25), Patrick Crowley said: > Hi all! > > I'm trying to optimize the statement below, but I can't figure out why this > query is still doing an ALL join with a filesort. > > There are several indexes on both my main table ('t'), and all the tables > I'm trying to join. (I

Optimize Question

2003-08-25 Thread Patrick Crowley
Hi all! I'm trying to optimize the statement below, but I can't figure out why this query is still doing an ALL join with a filesort. There are several indexes on both my main table ('t'), and all the tables I'm trying to join. (I also tried adding an index for t.publish, which bumped my join typ

optimize question

2003-01-08 Thread Mark Stringham
I have a php/mysql application that allows a user to add/remove/update/delete text and records from various tables. To avoid table overhead that comes when column sizes change etc - I am considering implementing an optimization query that will optimize all tables in the db every time the use