PEAK XOOPS - Re: performance enhancements in englishin japanese

Re: performance enhancements

List posts in the topic

question Re: performance enhancements

msg# 1.1.1.1
depth:
3
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/13 6:08
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Nick.

Quote:
Thanks for your reply. Our production server is running MySQL 4.0.26 but I have tested the queries on 4.1 and 5.0. For some reason on 4.0 and 4.1 the optimizer uses the status index which is next to useless due to the low cardinality. If you include the "USE INDEX(date)" in the queries it will have no adverse affects on the servers which get it correct.
In the online reference of MySQL:
"USE INDEX" does not affect the speed about ORDER section.
But I believe you because you've checked the performance experimentally.

Quote:
If you run an EXPLAIN on both versions of the query you will see what I mean.
I've already checked.
But explain just returns "Using filesort ..." in any conditions
It can be the version specific problem.

I've just added your code (modify sql/myalbum*.sql, index.php, viewcat.php).
It will be released later.
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!