MySQL Forums
Forum List  »  Performance

Re: Non deterministic functions
Posted by: KimSeong Loh
Date: July 26, 2005 07:13PM

If the EXPLAIN shows that the index with column headline_hash is used, then I guess the md5 expression should have been evaluated only once, otherwise it cannot make use of the index since evaluation for each rows will not guarantee a constant to use the index.

Try this
SELECT BENCHMARK(100,MD5(LEFT(?body,900)));
It will show how long it takes to evaluate the function for 100 times, adjust the number of times accordingly.

Options: ReplyQuote


Subject
Views
Written By
Posted
2901
July 26, 2005 03:40AM
Re: Non deterministic functions
1786
July 26, 2005 07:13PM
1685
July 27, 2005 03:17PM


Sorry, you can't reply to this topic. It has been closed.

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.